We are using the okta react native sdk. We have a few external idps we redirect to for certain users. The okta sign in widget on our web pages handles these fine with IDP discovery turned on. The okta react native sdk doesn’t appear to have this option for custom sign in. I’m assuming to get the idp redirection to work we would have to use the broswer sign in? Is there a way to get that idp discovery to work with a custom sign options?
1 Like
@jjcbt Are you referring the below Okta react native sdk? The sdk does include custom sign in and browser sign in.
Please refer the below logic:
The basic flow would be:
- GitHub - okta/okta-auth-js: The official js wrapper around Okta's auth API
- GitHub - okta/okta-react-native: OIDC enablement for React Native applications
You don’t need to use auth-js to do this, as it’s a public API. WebFinger | Okta Developer
Please have a try if this idea works.
So if I understand correctly, our custom login screen would take the email, and use the web finger api to see if the user needs to use an external idp. If the user does then we would have to use the signInWithBrowser({ idp: ‘your_idp_here’ }); option with the react native sdk?
@jjcbt did the described approach work for you in the end?