- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试在 IOS 应用程序中实现 OAuth2 隐式授权流程。在这种情况下,它需要 token 请求而不是代码请求,因为您无法在 native 应用程序中安全地共享客户端 key 。
这样的请求会生成一个登录表单:
https://login.windows.net/<tenantid>/oauth2/authorize?api-version=1.0&client_id=<client id>&response_type=token&redirect_uri=shp-apps://localhost:44300/?ReturnUrl=%2F&resource=https://graph.windows.net
成功登录后出现此错误:
#error=unsupported_response_type&error_description=AADSTS70005: response_type 'token'
is not supported for the application
Trace+ID: 9008e580-2798-4b6c-a6bf-2bf614b61f64
Correlation+ID: ceb9bb4b-34a4-4441-801f-377f534543b1
Timestamp: 2014-08-26+16%3a24%3a24Z
这实际上是正确的吗? token request_type 不受支持?或者还有什么我需要做的吗?该应用程序被设置为 native 应用程序。我已经能够在同一事件目录中的不同应用程序中执行“代码”response_type。
最佳答案
根据 MSDN 文档 AAD Auth Failures - Implicit OAuth is not enabled for the application ,您需要在 Azure 门户的应用程序注册 list 中将 oauth2AllowImplicitFlow
设置为 true
。
在 AAD 中创建应用注册时,您需要手动编辑应用程序 list 并将 oauth2AllowImplicitFlow
属性的值设置为 true
。否则 AAD 登录流程将无法工作
error "AADSTS70005: response_type 'token' is not supported for the application..."
请按照以下步骤解决此问题。
关于azure - 获取 #error=unsupported_response_type&error_description=AADSTS70005 : with token request,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25511096/
我是一名优秀的程序员,十分优秀!