PilotBob PilotBob - 1 month ago 10
Javascript Question

How can I get the JWT access_token after loging in with ADAL.js?

I see that adal.idtoken is stored in the cache. However, it doesn't look like a JWT which is what I think I need to pass to my azure mobile service to get a AUMO auth token.

Answer Source

If you want to retrieve cached tokens programmatically, see AuthenticationContext.prototype.getCachedToken from https://github.com/AzureAD/azure-activedirectory-library-for-js/blob/master/lib/adal.js. All the tokens issued by Azure AD are JWT tokens.