在Azure B2C自定义策略中,请遵循此指南:https://learn.microsoft.com/en-us/azure/active-directory-b2c/tutorial-create-user-flows?pivots=b2c-custom-policy&tabs=applications#custom-policy-starter-pack
在自定义策略入门包中,在文件LocalAccounts/TrustFrameworkBase.xml
中,有以下代码:
<ContentDefinition Id="api.localaccountsignup">
<LoadUri>~/tenant/templates/AzureBlue/selfAsserted.cshtml</LoadUri>
<RecoveryUri>~/common/default_page_error.html</RecoveryUri>
<DataUri>urn:com:microsoft:aad:b2c:elements:contract:selfasserted:2.1.7</DataUri>
<Metadata>
<Item Key="DisplayName">Local account sign up page</Item>
</Metadata>
</ContentDefinition>
如何找到~/tenant/templates/AzureBlue/selfAsserted.cshtml
的源代码?
1条答案
按热度按时间rpppsulh1#
所有模板都可以在GitHub上找到:Azure AD B2C HTML tempaltes
或者,将
~
替换为https://yourtenant.b2clogin.com/static
。因此,对于自Assert,它将是https://yourtenant.b2clogin.com/static/tenant/templates/AzureBlue/selfasserted.cshtml