Bakery Single Sign-On System

Last modified: November 9, 2009 - 03:54

Bakery SSO FAQ

http://drupal.org/project/bakery

What is Bakery?
Infrastructure-wide single-sign-on system.

Why is it called 'Bakery'?
Because its primary concern is baking cookies and distributing them.

Why should I use Bakery?
You have more than one Drupal installation, and you want them to share user data/sign-ons across one domain and its subdomains.

Do my Drupal installations need to be on the same machine/hosting service to use Bakery?
No, by installing Bakery on all related installs, each site or sub site will be able to access the main cookie created by Bakery.

Why do I need a copy of Bakery on each install?
The install on your master site creates the cookie, and the installs on the other sites are waiting for specific information from that cookie. The sub sites use the information about the cookie domain and the key to find the right related Bakery cookie.

I've created a new user on the Master site, but the user is missing from one of the slave/sub sites. What's wrong?
User accounts are copied to slave sites only as needed. The user account must log in initially via the master site, and then navigate to the sub site. Their account will be created and logged in seamlessly.

I already have a combination of multi-site Drupal, or separate installs on different servers, sharing the same user database tables. How is Bakery different?

Bakery does not share any of the user related tables. This is a huge bonus for scalability and ease of maintenance. IE, with Bakery we could update different drupal.org domains at different times, while allowing users access between versions.

If the user databases are shared, how are they synchronized?
There are some synchronizations: If you edit your user account on drupal.org some of the data is updated on the slave sites.

What happens when a password is changed on one site, will it be changed on the other sites?
Logins are handled by the master site only, there is only one password.

How does Bakery handle sessions? If you log out from one sub-domain are you logged out of all sub-domains?
Yes, logging out from any part of the shared Bakery login sites will log a user out from all.

Troubleshooting Tips

After installing Bakery, users cannot view 'my account' what's wrong?
Your cookie_domain in settings.php may be improperly set.

Where do I set the weight of Bakery so it will work with Organic Groups?
Edit the weight column in the system table.
http://drupal.org/node/110238

 
 

Drupal is a registered trademark of Dries Buytaert.