Commit e3ab219
fix(auth): accept both v1 (api://guid) and v2 (guid) audiences
Default app registrations have requestedAccessTokenVersion=null, which
means Entra issues v1 access tokens with aud='api://<clientId>'. EasyAuth
was configured with allowedAudiences=['<clientId>'] (bare GUID only), so
every Web->API call failed audience validation and returned 401.
Include both forms so the script works regardless of the app reg's
accessTokenAcceptedVersion setting.1 parent 814d054 commit e3ab219
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
| 257 | + | |
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
| 345 | + | |
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| |||
0 commit comments