Skip to content

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

Description

@juagarciaga

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

Activity

  1. AndrewCraswell commented on Dec 11, 2019

    @AndrewCraswell

    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

  2. FernandoKGA commented on Jan 20, 2020

    @FernandoKGA

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions