【问题标题】:How to connect to Azure B2c via IdentityServer如何通过 IdentityServer 连接到 Azure B2c
【发布时间】:2020-04-01 06:06:15
【问题描述】:

目前我有电容器应用程序直接连接到 Azure B2C。但是我需要通过 IdentityServer4 连接到 B2C。这是因为我想注入一些自定义声明,并在一个集中 (IdentityServer) 的地方进行所有身份验证。

有可能吗?如果有怎么办?

谁能给我指路。

在我的应用程序中,我使用这个电容器插件进行身份验证 (https://github.com/moberwasserlechner/capacitor-oauth2)

【问题讨论】:

    标签: identityserver4 azure-ad-b2c capacitor


    【解决方案1】:

    正如@Mehrdad 所说,您需要添加一个外部提供商 = B2C。

    比如:

    .AddOpenIdConnect("b2c", "Azure AD B2C", options =>
    

    但是 B2C 期望客户端使用 msal 库,因此您必须在调用中添加额外的参数,例如政策 (?p=)。

    【讨论】:

      【解决方案2】:

      您可以在Sign-in with External Identity Providers找到完整指南

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-10-16
        • 2018-05-01
        • 1970-01-01
        • 1970-01-01
        • 2021-02-20
        • 2019-12-14
        相关资源
        最近更新 更多