Hi,

Ok this sound good, I figured i could, I was thinking of storing
session in database, but I don't think user will be logged into the 2
apps at the same time, and I don't really want a complicated CAS
setup.

Regards,
Nils


On Tue, Nov 8, 2011 at 12:55 PM, Anthony <abasta...@gmail.com> wrote:
> On Tuesday, November 8, 2011 7:08:08 AM UTC-5, rochacbruno wrote:
>>
>> Yes it works well.
>> You can also use cas to share authentication between applications.
>> But the approach using same db for both applications is better, but note
>> that both applications should have the same hmac_key for auth instance.
>
> Also, make sure all applications but one turn off migrations for the Auth
> tables. If the db connection is exclusively for accessing the Auth tables,
> you can disable migrations for the whole connection via:
> authdb = DAL('mysql database', migrate_enabled=False)
>
> Alternatively, you can disable migrations for the individual Auth tables
> (but not other tables accessed by the connection via:
> auth.define_tables(migrate=False)
> I could be wrong, but I think simply sharing the db for Auth tables would
> still require separate logins for each app, whereas I think using CAS, a
> single login would keep you logged into both apps at once.
> Anthony
>

Reply via email to