[英]How to Implement Localization for Azure Adb2c (Custom Policy) In flutter (dart)?
[英]How to prefill some of the fields in ADB2C custom policy?
我正在制定 ADB2C 注冊自定義策略。 我想根據 url 中傳遞的值使用一些查詢參數左右來預填充一些字段/用戶屬性。 我已嘗試以下鏈接中提到的 {OAUTH-KV:query_parameter} 聲明解析器: https://docs.microsoft.com/en-us/azure/active-directory-b2c/claim-resolver-overview#using-claim-解析器,但無法實現這一目標。 任何建議/解決方案都會非常有幫助。在此先感謝。
這在很大程度上取決於技術配置文件的類型,但我建議在您的實現中檢查兩件事。
首先,您需要確保設置DefaultValue
屬性,並將AlwaysUseDefaultValue
設置為 true。 這是一個來自Self Asserted
技術配置文件的工作示例。
<InputClaims>
<InputClaim ClaimTypeReferenceId="email" DefaultValue="{OAUTH-KV:userEmailParameter}" AlwaysUseDefaultValue="true"/>
</InputClaims>
<OutputClaims>
<OutputClaim ClaimTypeReferenceId="email" Required="true"/>
<OutputClaim ClaimTypeReferenceId="password" Required="true"/>
</OutputClaims>
其次,在某些技術配置文件中,您必須添加IncludeClaimResolvingInClaimsHandling
元數據屬性並將其設置為 true。
<Metadata>
<Item Key="IncludeClaimResolvingInClaimsHandling">true</Item>
</Metadata>
隨意編輯您的原始帖子並包含您配置的技術配置文件,我可能能夠提供更好的幫助。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.