[web2py] Re: Can I share web2py authorization db across multiple apps
From http://web2py.com/book/default/chapter/04#Cooperation : Applications can connect to the same database and thus share tables. It is not necessary that all tables in the database are defined by all applications, but they must be defined by those applications that use them. All applications that use the same table, but one, must define the table with migrate=False. On Jan 25, 9:22 pm, tomt tom_tren...@yahoo.com wrote: Hi, I have been building several small web2py apps and I was hoping that there was a way of sharing the authorization information among these apps. Currently each app I create has it's own set of auth_ tables requiring users to register for each app. It would be a great time- saver if these apps could share the same set of auth_ tables. Is this possible? All of the apps I refer to are driven from one python instance (python web2py.py ) - Tom
[web2py] Re: Can I share web2py authorization db across multiple apps
Also check this setting originally in db.py of the scaffolding app auth.settings.hmac_key = 'sha512:.' If you want to share the table across apps or migrate copies of the auth_xxx tables, the code that generates the encrypted passwords use this as the method and key.
Re: [web2py] Re: Can I share web2py authorization db across multiple apps
Also, make sure the sessions folder is either A) Symlinked to each other application or B) Store sessions in database or in a cookie. -- Thadeus On Wed, Jan 26, 2011 at 9:38 AM, ron_m ron.mco...@gmail.com wrote: Also check this setting originally in db.py of the scaffolding app auth.settings.hmac_key = 'sha512:.' If you want to share the table across apps or migrate copies of the auth_xxx tables, the code that generates the encrypted passwords use this as the method and key.
[web2py] Re: Can I share web2py authorization db across multiple apps
I don't know if this works. But how about 1 app for authorization exclusively. And those two apps do not deal with authorization at all. Then in each of the two apps, you simply use the database from the app that deals with authorization exclusively.
[web2py] Re: Can I share web2py authorization db across multiple apps
There's also the Central Authentication Service: http://web2py.com/book/default/chapter/08#Central-Authentication-Service Says it doesn't work with Auth, but this will change in the future. I don't know what the status of that is. Massimo? On Wednesday, January 26, 2011 12:32:35 AM UTC-5, VP wrote: I don't know if this works. But how about 1 app for authorization exclusively. And those two apps do not deal with authorization at all. Then in each of the two apps, you simply use the database from the app that deals with authorization exclusively.