API App, OAuth2 and Azure AAD Application RRS feed

  • Question

  • User224005102 posted


    I'm trying to secure an API App with Azure AD, but can't get it to work. (By using AAD Application)

    1. I have deployed my API App
    2. Selected to authenticate with Azure AD, and configured an Azure AD Application in Express mode.
    3. On the Azure AD application i have added a new Key (Client secret)
    4. I can get an access token by using the client id (application id) and client secret + Api URI with Postman

    If I use the access token with postman to access the API App, I get this error:

    "You do not have permission to view this directory or page."


    Thursday, November 23, 2017 7:56 AM


  • User224005102 posted

    Solved, the was a wrong ALLOWED TOKEN AUDIENCES under the API App / Azure AD configuration.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, November 23, 2017 3:11 PM