gpt4 book ai didi

azure-ad-b2c - AAD B2C 中的 OAUTH-KV 声明解析器不起作用

转载 作者:行者123 更新时间:2023-12-01 17:47:39 31 4
gpt4 key购买 nike

我正在尝试使用 OAUTH-KV Claims Resolver 提取传递给 AAD B2C 自定义的名为 foo 的参数的值策略 authorize 端点作为声明,也名为 foo

foo ClaimType 定义为

<ClaimType Id="foo">
<DisplayName>Foo debug claim</DisplayName>
<DataType>string</DataType>
<UserInputType>TextBox</UserInputType>
</ClaimType>

TechnicalProfile

<TechnicalProfile Id="LocalAccount-Register">
<DisplayName>Register</DisplayName>
<Protocol Name="Proprietary" Handler="Web.TPEngine.Providers.SelfAssertedAttributeProvider, Web.TPEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
<Metadata>
<Item Key="ContentDefinitionReferenceId">api.localaccount.registration.prescribedfirm</Item>
<Item Key="IpAddressClaimReferenceId">IpAddress</Item>
<Item Key="language.button_continue">Create</Item>
</Metadata>
<CryptographicKeys>
<Key Id="issuer_secret" StorageReferenceId="B2C_1A_TokenSigningKeyContainer" />
</CryptographicKeys>
<InputClaims>
<InputClaim ClaimTypeReferenceId="foo" DefaultValue="{OAUTH-KV:foo}" />
</InputClaims>
<OutputClaims>
<OutputClaim ClaimTypeReferenceId="foo" Required="true" />
</OutputClaims>
<UseTechnicalProfileForSessionManagement ReferenceId="SM-AAD" />
</TechnicalProfile>

但是,foo 的值显示为 {OAUTH-KV:foo},而不是传递的实际值。

我相信我已遵循文档中的说明。

我还需要做其他事情才能完成这项工作吗?

<小时/>

编辑

与 claim 解析器相关的文档已于 2019 年 1 月 25 日在此处更新 https://learn.microsoft.com/en-us/azure/active-directory-b2c/claim-resolver-overview ,根据它应该可以工作。

我无法让任何声明解析程序显示除标记之外的任何内容,即 {Context:CorrelationId}{OIDC:LoginHint}

有谁知道是否需要任何神奇的元数据值来完成这项工作?

我确信我做错了什么,遗漏了一些东西,但我无法弄清楚是什么。

非常欢迎任何有用的指示。

最佳答案

声明解析程序仅适用于特定的技术配置文件,即 REST API 和 SelfAsserted(在编排步骤中组合注册和登录内容定义)。它明确仅适用于文档中提供的示例。

关于azure-ad-b2c - AAD B2C 中的 OAUTH-KV 声明解析器不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53008134/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com