-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Integration with React Native #24
Comments
Hi! Thank you for the kind words. 😊 Any flow fetching a token would work. Preferably client side applications should use the Authorization Code (using PKCE) flow. That’s the flow the OpenAPI docs also use. I’m not a frontend developer so I’ll tag @h3rmanj, he might be able to correct me if the following is wrong: You can use the Microsoft MSAL react package to handle all token fetching in react. You should set up your app registration in Azure AD just as you did for your OpenAPI docs(with a different redirect URI). This tutorial seem to use the correct flow and libraries. Quote from the msal-react GitHub README:
|
I don't really have any experience with React Native, and I don't really know if Microsoft's |
Seems like there's some specific examples on the PKCE flow on the official website, using this library. An example can be found here (remember to look at the V2 docs). Good luck! 🚀 |
@yeguacelestial I believe we’ve answered your question as best as we can, so I’m going to close this issue. Feel free to re-open if you have any more questions. |
Hello, I followed the docs. Everything is well written, and this is probably the best auth library I've seen for FastAPI.
However, I got lost in the woods of FARM stack. How can this library be integrated with a React Native front-end? What flow should one follow? Been lurking around but it seems like a quite uncommon use case.
The text was updated successfully, but these errors were encountered: