作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个.net core API,并且在应用程序中添加了 JWT token 身份验证代码。我的问题是如何从任何应用程序生成不记名 token ,以便我可以验证请求。我无法生成不记名 token 。
我尝试了很多选项,例如来自 Postman GetNewAccessToken 的选项。它要求单点登录,但登录后在新窗口中打开 Microsoft Office 网站。如何从 Postman 获取不记名 token ?
有没有办法使用用户凭据或使用单点登录从 C# 应用程序获取不记名 token ?
我需要一个不记名 token 来验证我的请求。
最佳答案
在浏览器中打开 F12 开发人员工具,查找经过身份验证的请求并查看身份验证 header 。它具有当前版本的不记名 token 。
例如:
/me
的请求
关于c# - 如何使用用户凭据从 azure 广告生成不记名 token ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60390643/
我是一名优秀的程序员,十分优秀!