Skip to content
Discussion options

You must be logged in to vote

Guys, in case anyone is wandering the easiest way to make it work, I figured it out.

Inside the provider, just add this to the scope:

providers: [
    AzureADProvider({
      clientId: process.env.AZURE_AD_CLIENT_ID,
      clientSecret: process.env.AZURE_AD_CLIENT_SECRET,
      tenantId: process.env.AZURE_AD_TENANT_ID,
      authorization:{
            params:{
                  scope: 'User.Read User.Read.All https://ads.microsoft.com/msads.manage offline_access',
            }
      }
}),

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@jacomonh
Comment options

@balazsorban44
Comment options

@jacomonh
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jacomonh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants