Automatically link identities same provider #4223
-
Hi, I have a mobile & web project with Google Sign In enabled. On mobile, I have an iOS and an Android app, with their respective native libraries, while on web I'm using the standard OIDC flow. This means that my setup (if I understand Kratos correctly) is made of 3 providers: Now, the challenge is that if a user signs in with Google on iOS and then tries again on web, it fails, since according to Kratos it's two different providers. And I can't even prompt the user to link them, as they wouldn't have access to native clients on web (and vice versa). I'm looking for a way to either automatically link identities across the same underlying provider, or alternatively configure one provider such that it supports all three platforms (web, iOS and Android). Any suggestions? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
It shouldn't be necessary to define 3 different providers. If you're using the native OIDC sign in using |
Beta Was this translation helpful? Give feedback.
It shouldn't be necessary to define 3 different providers. If you're using the native OIDC sign in using
id_token
s, you can specify the identifier of your app in theadditional_id_token_audiences
config option of the provider. See https://www.ory.sh/docs/kratos/social-signin/google#using-the-google-sdk-on-native-apps