authentication - Cross-app session persistence (thoughtbot/clearance) with Rails -


i have web app installed in example.com uses clearance authentication gem , working on stand-alone rails app in jobs.example.com.

i wondering if clearance has built in configurations user session persistence across rails apps hosted on different subdomains. need import user authentication details original app (example.com) via api , manipulate cookies so?

any help/advice appreciated!

you accomplish clearance via use of cookie_domain configration (see documentation) , synchronizing user data required each system, assuredly going real big pain. if apps must separate separate databases may want investigate making main app oauth provider , have jobs oauth consumer. auth live in main app , when jobs app needs authentication delegate main app. assuming auth checks out, main app pass information user.


Comments

Popular posts from this blog

Sass watch command compiles .scss files before full sftp upload -

filehandler - java open files not cleaned, even when the process is killed -

gridview - Yii2 DataPorivider $totalSum for a column -