将参数传递给Azure Ad B2C上的身份提供者

问题描述 投票:2回答:1

我正在使用Azure AD B2C作为身份验证门户。我试图保证Google+始终会转到“选择帐户”页面。但是我很难做到这一点。

从google文档,https://developers.google.com/identity/protocols/OpenIDConnect,可以接收此参数,这将确保用户选择帐户。

在遵循文档https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-implicit-grant-flow时,假设最后一次身份验证,提示似乎没有到达google。

azure google-plus azure-ad-b2c
1个回答
0
投票

[如果您要将静态查询参数附加到B2C向Google发送的身份验证请求中,则需要使用自定义策略。您可以在其中为Google配置OAuth提供程序,并为查询参数添加输入声明。

https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-get-started-custom?tabs=applications

https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-custom-setup-goog-idp?tabs=applications

      <InputClaims>
        <InputClaim ClaimTypeReferenceId="QueryParamName" DefaultValue="ValueToSend"/>
      </InputClaims>
© www.soinside.com 2019 - 2024. All rights reserved.