Hi ! We are thinking of using Ory Kratos as our Id...
# talk-kratos
b
Hi ! We are thinking of using Ory Kratos as our Identity Provider. We have several webapps, each of them has the same top domain, so everything is fine. We have also a mobile app which can use Ory Kratos as well. But sometimes we need to redirect users from our mobile app to our webapps in a browser (out-app). In this case, how can we make the user to be logged in from Ory Kratos in the browser, so the user can move from a webapp to another in the browser? Thanks for you help!
h
Hi, that use case is not yet covered!
b
Very reactive! But it would be? Otherwize, if we use the in-app browser, a browser-based authentication would work?
c
I think what you are looking for is a way to convert the token you are using in the app to a cookie in the browser (browser based auth flow and API based auth flow work differently). I don't think there is a way to do this right now, so you would probably have to just ask the user to log in again in the browser.
h
Yes well said Sam. Converting the tokens into another session format is kinda tricky, because it’s like a “use this token to log in as often as you want” type of scenario. It’s very difficult to make this secure and would need things like token replay detection. So there are no immediate plans or RFCs for such a feature
b
Ok thanks to both of you for your help!
And if I add Ory Hydra, can I use it as OAuth server between my apps (mobile and web) and Ory Kratos, and when the mobile app opens an in-app browser to redirect the user to my webapp, the webapp performs an OAuth flow, the user is already known by Ory Hydra (the user has been authorized during the sign-in from the mobile app), Ory Hydra gives a new token to the webapp and the user can perform actions on the webapp. What do you think?
Hi! Did you have time to look at my last question?
h
If it’s all in the same browser and domain it could work, otherwise it wouldn’t work because Hydra can not identify the user