将参数传递给 Azure Ad B2C 上的身份提供者
Pass parameter to Identity Provider on Azure Ad B2C
我正在使用 Azure AD B2C 作为身份验证门户。我试图通过发送查询参数 prompt=select_account 来保证 Google+ 总是转到 select 帐户页面。但是我很难实现这种行为。
根据 google 文档,https://developers.google.com/identity/protocols/OpenIDConnect,可以接收此参数,这将保证用户转到 select 帐户。
当按照文档 https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-implicit-grant-flow 进行操作时,提示似乎没有达到 google,假设是最后一次身份验证。
如果您想将静态查询参数附加到 B2C 向 Google 发出的身份验证请求,则需要使用自定义策略。您可以在其中为 Google 配置 OAuth 提供程序,并为您的查询参数添加输入声明。
<InputClaims>
<InputClaim ClaimTypeReferenceId="QueryParamName" DefaultValue="ValueToSend"/>
</InputClaims>
我正在使用 Azure AD B2C 作为身份验证门户。我试图通过发送查询参数 prompt=select_account 来保证 Google+ 总是转到 select 帐户页面。但是我很难实现这种行为。
根据 google 文档,https://developers.google.com/identity/protocols/OpenIDConnect,可以接收此参数,这将保证用户转到 select 帐户。
当按照文档 https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-implicit-grant-flow 进行操作时,提示似乎没有达到 google,假设是最后一次身份验证。
如果您想将静态查询参数附加到 B2C 向 Google 发出的身份验证请求,则需要使用自定义策略。您可以在其中为 Google 配置 OAuth 提供程序,并为您的查询参数添加输入声明。
<InputClaims>
<InputClaim ClaimTypeReferenceId="QueryParamName" DefaultValue="ValueToSend"/>
</InputClaims>