适用于多个服务提供商的 Azure B2C IDP SAML

Azure B2C IDP SAML for multiple service providers

我已经通过 SAML 为单个服务提供商成功地将 Azure B2C 配置为 IDP。在这个设置中有很多我不理解的部分,即使它可以工作。 我将描述我到目前为止的情况,然后再提问。

假设我有两个服务提供商,SP1/SP2 都需要 SAML 和 signup/signin 的页面。 SP1 需要 loyality_id 作为自定义属性,SP2 需要 product_name 属性。

这是有效的 source code。 Credit/Thanks到这个blog

以下是配置的高级摘要。

SP1 的 SAML(服务提供商 1):

Signup/signin SP1 策略:

到目前为止,通过此设置,我在 Azure Active Directory 中有两个应用程序用于自定义策略,在 Azure B2C blade 中有一个应用程序用于 built-in 策略。

根据https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-create-custom-attributes-profile-edit-custom

Extension properties can only be registered on an Application object even though they may contain data for a User. The property is attached to the application. The Application object must be granted write access to register an extension property.

感谢任何指点。

谢谢

该应用程序是在 "Creating a new application to store the extension properties" 部分创建的应用程序。

该应用程序的目的是允许使用本地帐户登录。可以跨多个策略使用相同的应用程序。

自定义属性与在 Azure AD 级别的应用程序注册中创建的应用程序相关,并具有配置文档中详述的权限。

在我的 Github 个人资料中,您可以找到 B2C 作为 SAML 颁发者方案的不同实现:https://github.com/marcelodiiorio/My-Azure-AD-B2C-use-cases

如果您有更多问题,请告诉我。