Azure AAD - The audience is invalid

后端 未结 6 1894
孤街浪徒
孤街浪徒 2021-02-05 22:47

I have create a webapi secured with azure active directory. I need to test this now and trying to use fiddler with an authorization header. I am trying to generate the token wit

6条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-05 23:19

    Important note

    "aud" value that is being generated for JWT token by azure is also controlled by "accessTokenAcceptedVersion" property in AD application manifest.

    This property defines a version of the access token that will be generated (MS docs about accessTokenAcceptedVersion).

    Possible results for its values:

    • null or 1 - "api://" prepended to GUID
    • 2 - "api://" is not added, so there should be GUID only

提交回复
热议问题