Azure B2C 自定义策略和客户端 ID

标签 azure azure-ad-b2c policy

我正在尝试设置自定义 Azure B2C 策略。当我设置 TrustedFrameworkExtensions.xml 文件时,我在 ClaimsProvider 和一些字段中遇到了困难。

问题如下:从哪里获取“client_id”和“IdTokenAudience”的值?

提前致谢

 <ClaimsProvider>
      <DisplayName>Local Account SignIn</DisplayName>
      <TechnicalProfiles>
         <TechnicalProfile Id="login-NonInteractive">
          <Metadata>
            <Item Key="client_id">ProxyIdentityExperienceFrameworkAppId</Item>
            <Item Key="IdTokenAudience">IdentityExperienceFrameworkAppId</Item>
          </Metadata>
          <InputClaims>
            <InputClaim ClaimTypeReferenceId="client_id" DefaultValue="ProxyIdentityExperienceFrameworkAppId" />
            <InputClaim ClaimTypeReferenceId="resource_id" PartnerClaimType="resource" DefaultValue="IdentityExperienceFrameworkAppId" />
          </InputClaims>
        </TechnicalProfile>
      </TechnicalProfiles>
    </ClaimsProvider>

最佳答案

如果我的理解是正确的,基于the official docs这些是 B2C 中具有给定名称的两个应用程序的应用程序 ID。在上面的文档中还有另一个链接 Getting Started它描述了您应该定义什么应用程序:

  • IdentityExperienceFramework(使用此确切名称)
  • ProxyIdentityExperienceFramework(使用此确切名称)

这两个存在后,您可以在策略 XML 中使用它们的应用程序 ID 分别代替 ProxyIdentityExperienceFrameworkAppId 和 IdentityExperienceFrameworkAppId

关于Azure B2C 自定义策略和客户端 ID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56131377/

相关文章:

flash - 如何保护 Flash 策略服务器?

facebook - Facebook 是否允许在任何未知域上登录策略?

azure - 如何使通过 Azure 应用服务托管的 React 应用程序的浏览器缓存失效?

c# - Autofac 和 Azure WebJobs

azure - 区 block 博客 : Azure ---- Data transfer

Azure 媒体服务从私有(private) blob 存储容器提交 JobInputHttp

angular - 登录应用程序后,带有 MSAL 和 Angular 的 Azure AD B2C 会立即重定向到登录页面

azure - 无法使 Azure B2C 刷新 token 无效

azure - Cortana Skill 是否支持使用 Azure AD B2C 帐户登录?

json - 防止所有用户删除特定的cloudformation堆栈