简体   繁体   English

使用ADAL.js登录后如何获取JWT access_token?

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

I see that adal.idtoken is stored in the cache. 我看到adal.idtoken存储在缓存中。 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. 但是,它看起来不像JWT,这是我认为我需要传递给我的Azure移动服务以获取AUMO身份验证令牌的功能。

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 . 如果要以编程方式检索缓存的令牌,请参阅https://github.com/AzureAD/azure-activedirectory-library-for-js/blob/master/lib/adal.js中的 AuthenticationContext.prototype.getCachedToken。 All the tokens issued by Azure AD are JWT tokens. Azure AD发行的所有令牌都是JWT令牌。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM