我在这里跟踪了入门工作流:https://learn.microsoft.com/azure/active-directory-b2c/active-directory-b2c-get-started-custom
我从无到有地跟踪它,两次,并且在尝试用登录和注册自定义策略登录时,我被提示使用“您的密码是不正确的”。我如何正确地验证身份?
正在起作用的事情:
使用Application,我可以看到以下错误。(使用了一些卫生设施)
"ValidationRequest":{
"ContentType":"Unspecified",
"Created":"2017-10-06T17:19:34.3995426Z",
"Key":"ValidationRequest",
"Persistent":true,
"Value":"client_id=55555555-5555-5555-5555-555555555555&resource=cccccccc-cccc-cccc-cccc-cccccccccccc&username=MYUSERNAME&password=PASSWORDIENTEREDONSCREEN&grant_type=password&scope=openid&nca=1;1;login-NonInteractive;False"
},
"ValidationResponse":{
"ContentType":"Json",
"Created":"2017-10-06T17:19:34.3995426Z",
"Key":"ValidationResponse",
"Persistent":true,
"Value":"{\"error\":\"invalid_client\",\"error_description\":\"AADSTS70002: The request body must contain the following parameter: 'client_secret or client_assertion'.\\r\\nTrace ID: 55555555-cccc-cccc-cccc-555555555555\\r\\nCorrelation ID: 77777777-7777-7777-7777-777777777777\\r\\nTimestamp: 2017-10-06 17:19:33Z\",\"error_codes\":[70002],\"timestamp\":\"2017-10-06 17:19:33Z\",\"trace_id\":\"55555555-cccc-cccc-cccc-555555555555\",\"correlation_id\":\"77777777-7777-7777-7777-777777777777\"};1;login-NonInteractive;False"
},
重要的一点似乎是:
"AADSTS70002:请求主体必须包含以下参数:'client_secret或client_assertion‘
后来它还说:
“引发了'Web.TPEngine.Providers.BadArgumentRetryNeededException‘类型的异常。”
有些事情我已经检查过了:
任何帮助都是非常感谢的。谢谢。
发布于 2017-10-07 23:02:27
ProxyIdentityExperienceFramework 应用程序被错误地创建为Web /API。您需要将其重新创建为一个本地应用程序。确保您不会忘记相应地将基本策略中的client_ids更新为新的ProxyIdentityExperienceFramework。
错误AADSTS70002:请求主体必须包含以下参数:“client_secret或client_assertion发生在您试图为注册为Web /API但不提供所需的client_secret的应用程序使用client_id获取令牌时。
登录时,Azure ADB2C的信任框架(执行自定义策略的东西)内部尝试使用IdentityExperienceFramework应用程序(本地应用程序)获得ProxyIdentityExperienceFramework应用的令牌。如果您错误地将后者创建为Web /API,那么B2C的策略引擎将无法获得令牌,该令牌将显示为您的密码,这是给用户的错误消息。
https://stackoverflow.com/questions/46611968
复制相似问题