Site 1 (a.com) – This site is used for users to log in with their username/email and password.
Site 2 (x.com) – Login using username/email and password is disabled here. Users are required to authenticate through Site 1. Once they are logged in on Site 1 (something like an authorization process), they should automatically be able to access Site 2 and view the data there without logging in again.
Given this requirement, do you have any suggestions on what library, system, or approach I should use to achieve this?
You can’t share sessions between two sites, but you could set up a single-sign on using OAuth, with a.com as an identity provider. It’s not a trivial process, but there’s documentation for Frappe and discussion around here.
Yes @peterg , I’ve already looked through various forums and discussions about using OAuth for single-sign-on, but I haven’t found any clear or detailed documentation so far. Do you happen to have any links or resources I can study?
I don’t know anything about your Site 1 or Site 2, so it’s hard to give much direct advice. Assuming they’re both Frappe sites, you could start with something like this:
Thanks for the link!
Yes, both sites are Frappe sites. I’ll go through the documentation you shared.
By the way, do you know if there’s any example or reference where one Frappe site acts as the OAuth provider and the other as the OAuth client? That’s exactly what I’m trying to achieve.