Hi, I am trying to implement SSO between two rails...
# support-questions-legacy
m
Hi, I am trying to implement SSO between two rails websites with different domain names, e.g. a.com and b.com . Is SuperTokens the right tool for me? We want a phone-password login. Do I just use the
with-phone-password
react example code on each site, or do I need another site like c.com to let the user redirect to for authentication? And how do configure to let it know which domains should share the same session? Sorry I'm quite confused.
r
hey @magical_peacock_68883
if you want to create a common portal for the two sites, it would require supertokens to be an oauth provider, which we are not (yet). But you could build something like the implicit oauth flow on top of supertokens relatively easily to enable this. Alternatively, adding login UI to each of the two sites also works (and you can share the same user pool for them by using a common supertokens core). But this would mean that a user logged into a.com will also have to separately login into b.com
m
Thank you so much. Do you have any documents about the implicit oauth way?
r
i think it's there on discord on another thread
let me try and find it
maybe this will help ^^
m
Thank you so much! I will give it a try.
15 Views