I was trying to get a bearer token from the headers Easy Auth injects into requests to my Azure App Service to provide users who want to make API calls to my application, but the token from the token store that's provided in X-MS-TOKEN-AAD-ACCESS-TOKEN is not valid. It is in some kind of internal or encrypted format and starts with PAQABAAAAAAD--
and not ey
like a JWT. The X-MS-TOKEN-AAD-ID-TOKEN is valid, but it doesn't get renewed when I visit /.auth/refresh
.
I tried following the instructions at http://jsandersblog.azurewebsites.net/2020/01/17/easy-auth-using-x-ms-token-aad-access-token-as-a-bearer-token/ to get a real bearer token, but Resource Explorer gives me this:
Cannot execute the request for site ... because the site is running on auth version v2
What to do?