在Postman中为Azure AD B2C请求访问令牌 [英] Request Access Token in Postman for Azure AD B2C
问题描述
如何在
我尝试从Azure门户中的立即运行
中获取URL,并将其放入 Auth Url
但这会产生以下错误:
img src = https://i.stack.imgur.com/sVRZr.png alt = b2c error>
更新
在Chris的回答之后,我现在克服了以上错误。我可以登录,但仍然无法获得访问令牌:
AADB2C90085:该服务遇到内部错误。请重新认证,然后重试。
关联ID:45c56d47-4739-465f-8e02-49ba5b3a1b86
时间戳记:2017-11-16 15:27:52Z
使用 @Chris Padgett的答案,我得到了它使用 Implicit
Grant类型(无法使用授权代码Gran Type来工作)。
授权类型:隐式
回调URL:在我的B2C应用
身份验证网址: https://login.microsoftonline.com/te/ {tenant} / {policy} / oauth2 / v2 .0 / authorize
客户ID:应用ID
来自我的B2C应用
范围: https:// {tenant} .onmicrosoft.com / {web api app id uri} / {scope name}
客户端身份验证:没关系,
How can I request an Access Token
in Postman against an Azure AD B2C tenant?
I tried taking the url from Run Now
in the Azure portal and putting that in the Auth Url
but that produces the following error:
Update
Following Chris's answer, I'm now past the above error. I'm able to sign-in but still can't get an access token:
AADB2C90085: The service has encountered an internal error. Please reauthenticate and try again. Correlation ID: 45c56d47-4739-465f-8e02-49ba5b3a1b86 Timestamp: 2017-11-16 15:27:52Z
Using @Chris Padgett's answer, I was able to get it working using the Implicit
Grant Type (couldn't get it working w/ Authorization Code Gran Type).
Grant Type: Implicit
Callback URL: any URL defined in my B2C app
Auth URL: https://login.microsoftonline.com/te/{tenant}/{policy}/oauth2/v2.0/authorize
Client ID: Application ID
from my B2C app
Scope: https://{tenant}.onmicrosoft.com/{web api app id uri}/{scope name}
Client Authentication: Either one, it didn't matter
这篇关于在Postman中为Azure AD B2C请求访问令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!