SAML support #5952
Replies: 4 comments 16 replies
-
Hey @utkarsh-bandekar - the native platforms do not support SAML, but the javascript SDK does. https://firebase.google.com/docs/reference/js/v8/firebase.auth.SAMLAuthProvider Here's what I think - you can either use the JS SDK completely (losing the benefit of native notifications/messaging/dynamic-links - a few things) and have it work with no fiddling it seems. Or, with a little fiddling I think it's also possible to mix the SDKs just a little bit, and use the SAML Auth from the firebase-js-sdk to get an auth token, then use that token with the native SDKs wrapped here via react-native-firebase if you need the native bindings. |
Beta Was this translation helpful? Give feedback.
-
Thanks, @mikehardy, Those links helped to get started. Since firebase native SDK's do not provide support for SAML implementation, we plan to host a web page (which will act as a middle man and use the firebase js SDK to do the SAML authentication) and call this web page from react-native using react-native-custom-tabs and return token. Use the returned token and call signInWithCredential(). |
Beta Was this translation helpful? Give feedback.
-
Just happened across this and I may have something to contribute, I ran into a similar problem using just the web SDK in an Expo app (signInWithPopup and signInWithRedirect, the two ways to do SAML auth doesn't work in react native), so I have been successfully using a middleman webpage. I have a slightly out of date (I will be updating it soon) example that I made because there is no information anywhere about doing this. Since this example is in Expo you will have to replace expo's WebBrowser API, but that should be simple.
|
Beta Was this translation helpful? Give feedback.
-
We have a react-native app which is currently using Auth0 for authentication.
We are planning to add SSO support in our app. We have decided to use Google identity platform and configure SAML provider for tenants which requires SSO.
Does react-native-firebase support login using SAML provider.
If its not supported then how much easy it will be to add support for SAML (Considering the fact that we are new in react-native development)
Beta Was this translation helpful? Give feedback.
All reactions