access-token - 在 msal 中调用“loginredirect”后如何获取 id 令牌和访问令牌
问题描述
你好,我在调用 this.authService.loginRedirect({scopes: [ 'user.read', 'openid', 'profile', 'user_impersonation']}) 后寻找检索 id 令牌并找到访问令牌的方法;在 msal 中,我查看了以前的帖子,但没有找到答案,所以向您致以最诚挚的问候,gal
解决方案
通过 localStorage.getItem('msal.idtoken') 找到我的答案
推荐阅读
- python - 在我将迁移应用到翻译后,我遇到了 django-parler 2.0.1 的问题,它不会在管理站点中显示 Products 字段
- python - 尝试连接数据库时出现错误消息
- scala - Scala 中的尾递归用例解决方案
- sockets - 如何设置源 IP 以在 Python 中发送流量
- c++ - 从铬代码创建简单的http请求
- python-3.x - 从 Cloud Storage 读取数据而不使用 Google Cloud Function 下载文件
- ruby-on-rails - 来自刹车手的 Sql 注入,用于在 Rails 中按字段排序
- scala - 如何同时发出 10 个 http 请求?
- c# - Autofac 5根据条件中止寄存器
- r - R中带有2个变量的双积分