Hi everyone, I currently have multiple apps on the...
# talk-kratos
f
Hi everyone, I currently have multiple apps on the same TLD (a.example.com, b.example.com) that I want to authenticate all at once if the user logs in. I currently have Kratos running on auth.example.com/ory/kr. How do I approach this with proper redirects that will result in a relatively seamless experience? For instance if the user clicks on the login button in a.example.com they should be redirected to the login page (auth.example.com?), and after successful login they will be redirected back to a.example.com. Same with b.example.com, after they successfully logged in I want the user to be redirected back to b.example.com.
l
Hello, you can use the return_to parameter to achieve this when you create your login flow, at the end of the flow you will be redirected to the return_to value you provided when you initiated the flow, they talked about it in the docs https://www.ory.sh/docs/concepts/redirects#allow-list
f
Thanks for the help 🙏
s
I guess you figured it out already, but for cookies to work in this setting you want to make sure to set the cookie domain to example.com and setup CORS properly