【发布时间】:2014-10-20 02:09:57
【问题描述】:
我正在尝试在 IOS 应用程序中实现 OAuth2 隐式授权流程。在这种情况下,它需要令牌请求而不是代码请求,因为您无法在本机应用程序中安全地共享客户端密码。
所以这样的请求会产生一个登录表单:
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
这真的正确吗,不支持令牌request_type?还是我需要做其他事情?该应用程序设置为本机应用程序。我已经能够在同一个活动目录中的不同应用程序中执行“代码”response_type。
【问题讨论】:
标签: azure oauth-2.0 azure-active-directory asp.net-identity-2