Implicit Grant Access Tokens with New-AzureADApplication RRS feed

  • Question

  • The Powershell command New-AzureADApplication does not seem to support an option to enable Access Tokens for Implicit Flow. There is a single argument Oauth2AllowImplicitFlow that only enables ID tokens, but leaves Access Tokens disabled. How can we enable that setting for new App using the powershell module ?

    Pablo Cibraro -

    Wednesday, July 17, 2019 4:46 PM

All replies

  • If you have the boolean value for oauth2allowimplicitflow set to true when creating the AAD Application, that should allow implicit flow for your AAD Application Registration. 

    Getting an access token would entail following the correct flow that gets an access token back. You would need to have the "response_type" include the word "token" in order to get an access token using an AAD Application Registration that has the implicit flow enabled. 

    Unfortunately there aren't any V1.0 samples, and the New-AzureADApplication command creates a V1.0 AAD App Registration. So I can't provide a v1.0 sample, but the v2 implicit flow docs explains how to get an access token using implicit flow very well :

    Please let me know if this answers your question. And if it does please remember to mark a response as answer. If not lease let us know what your other questions are within the scope of this thread. 

    Thursday, July 18, 2019 5:41 PM
  • I'm following up on this, please remember to mark one of the responses as answer if your question has been answered. If not please let us know if there are anymore questions. Thanks
    Tuesday, July 30, 2019 11:30 PM