[英]Pass parameter to Identity Provider on Azure Ad B2C
我正在使用 Azure AD B2C 作为身份验证门户。 我试图通过发送查询参数 prompt=select_account 来保证 Google+ 始终转到 select 帐户页面。 但我很难达到这种行为。
从谷歌文档https://developers.google.com/identity/protocols/OpenIDConnect中,可以接收到此参数,这将保证用户转到 select 帐户。
按照文档https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-implicit-grant-flow ,似乎提示没有到达谷歌,假设最后一次认证。
如果您想将 append 和 static 查询参数添加到 B2C 向 Google 发出的 Auth Request 中,那么您需要使用自定义策略。 您可以在其中为 Google 配置 OAuth 提供程序,并为您的查询参数添加输入声明。
<InputClaims>
<InputClaim ClaimTypeReferenceId="QueryParamName" DefaultValue="ValueToSend"/>
</InputClaims>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.