react-native-azure-ad | React Native module implements Azure AD authentication flow | Azure library
kandi X-RAY | react-native-azure-ad Summary
kandi X-RAY | react-native-azure-ad Summary
React Native module implements Azure AD authentication flow in pure js
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Serialize an object
- Generates a resource key for the associated resources .
react-native-azure-ad Key Features
react-native-azure-ad Examples and Code Snippets
Community Discussions
Trending Discussions on react-native-azure-ad
QUESTION
Currenty, in our web app, a Microsoft login with Firebase is implemented. Now, I want to do the same from a React Native app. So far, I found that react-native Firebase library does not directly support this provider. Also, firebase.auth.OAuthProvider('microsoft.com')
is not supported in native.
Then, In my next attempt, I implemented Azure login with react-native-azure-ad-2
package, which returns an accessToken and user's data. Now I've been trying to use this token to signIn with Firebase with no success.
ANSWER
Answered 2020-Sep-01 at 18:28So, I finally found a solution. I had to use a custom token which is generated with a unique id (in this case, Microsoft uid). The token can be generated with a 3rd party package or with firebase-admin (that is, from server side only). So, I created a cloud function in firebase that takes the Microsoft uid and some additional user info and returns a token, as shown below:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install react-native-azure-ad
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page