【发布时间】:2018-09-20 07:33:10
【问题描述】:
我正在尝试根据我们的策略生成访问令牌,但出现此错误。
AADB2C90086: The supplied grant_type [client_credentials] is not supported.
这是一个邮递员请求示例
POST /{tenant}/oauth2/token?p=B2C_1A_SignUpOrSignInWithAAD HTTP/1.1
Host: login.microsoftonline.com
Content-Type: application/x-www-form-urlencoded
Cache-Control: no-cache
grant_type=client_credentials&client_id={client_id}&resource=https%3A%2F%2F{app_url}&client_secret={client_secret}
但如果我不使用我们的自定义策略并直接转到 B2C 租户,它就可以正常工作
POST /{tenant}/oauth2/token?api-version=1.0
... same as above
我们的自定义政策中是否缺少某些内容?
【问题讨论】:
标签: azure-active-directory azure-ad-b2c identity-experience-framework