If your tokens are v1.0
This guide configures the audience app registration with api.requestedAccessTokenVersion: 2, so every token it shows is v2.0. If you reuse an existing registration that leaves requestedAccessTokenVersion unset, Entra issues v1.0 tokens instead. Decode a sample token and check its ver claim; if it is 1.0, four things change:
- Issuer: The
issclaim ishttps://sts.windows.net/<TENANT_ID>/instead ofhttps://login.microsoftonline.com/<TENANT_ID>/v2.0. Register the issuer URL exactly as your token'sissclaim carries it. The two URLs share the same JWKS, so discovery mode works for either. - Wizard selector: Pick v1 (sts.windows.net) in the Connect workload wizard's Token issuer selector instead of v2.0 (login.microsoftonline.com).
- Audience: The
audclaim is the identifier URI you passed asresource(for example,api://<APP_ID>), not the registration's client ID. Set the federation rule'saudienceto the exactaudvalue from your decoded token. - Client ID claim: The calling identity's client ID appears in
appid, notazp. The two claims never appear in the same token, so a rule that matches onazpnever passes against a v1.0 token.
The oid, sub, and tid claims carry the same values in both versions, so the rest of this guide applies unchanged.