Skip to content
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

Is there any way to request token to access version 2.0? #95

Open
juagarciaga opened this issue Nov 25, 2019 · 2 comments
Open

Is there any way to request token to access version 2.0? #95

juagarciaga opened this issue Nov 25, 2019 · 2 comments

Comments

@juagarciaga
Copy link

I need to setup manifest to return user email.
Any advices about how to do this?

@AndrewCraswell
Copy link

AndrewCraswell commented Dec 11, 2019

Don't think this is possible using ADAL, which this library uses. To interop with version 2.0 tokens, you will need to use MSAL library:
https://github.com/AzureAD/microsoft-authentication-library-for-js

react-adal is pretty much the gold standard for integrating React with ADAL, but there are similar libraries for React and MSAL. I currently maintain react-aad-msal which is unofficial and going through a lot of changes in the coming months, but is a decent option. I believe Microsoft also has plans for making an official React MSAL wrapper in the coming year.
https://github.com/syncweek-react-aad/react-aad

@FernandoKGA
Copy link

Don't think this is possible using ADAL, which this library uses. To interop with version 2.0 tokens, you will need to use MSAL library:
https://github.com/AzureAD/microsoft-authentication-library-for-js

react-adal is pretty much the gold standard for integrating React with ADAL, but there are similar libraries for React and MSAL. I currently maintain react-aad-msal which is unofficial and going through a lot of changes in the coming months, but is a decent option. I believe Microsoft also has plans for making an official React MSAL wrapper in the coming year.
https://github.com/syncweek-react-aad/react-aad

I wish I knew this before integrating it into the current project that I'm working on...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants