gpt4 book ai didi

Azure AD B2C 本地帐户登录页面自定义

转载 作者:行者123 更新时间:2023-12-03 02:26:54 25 4
gpt4 key购买 nike

如何自定义 Azure AD B2C 本地帐户登录页面的翻译?现在看起来像这样

所有语言的用户名占位符都相同,这是错误的。当我执行“用户流”->“新用户流”->“登录”->“标准”->“创建”->“运行用户流”时,它会打开此页面,但是当我选择此用户流时,“语言”->“启用语言自定义”->选择语言->“下载默认值”-我找不到此页面中的文本。如何根据语言将此占位符替换为正确的文本?

编辑:当我选择登录页面的语言时,我有以下变体可供编辑:

enter image description here

“身份提供商部分页面”的默认值:

{
"LocalizedStrings": [
{
"ElementType": "ClaimsProvider",
"ElementId": null,
"StringId": "AmazonExchange",
"Override": false,
"Value": "Amazon"
},
{
"ElementType": "ClaimsProvider",
"ElementId": null,
"StringId": "FacebookExchange",
"Override": false,
"Value": "Facebook"
},
{
"ElementType": "ClaimsProvider",
"ElementId": null,
"StringId": "GoogleExchange",
"Override": false,
"Value": "Google"
},
{
"ElementType": "ClaimsProvider",
"ElementId": null,
"StringId": "LinkedInExchange",
"Override": false,
"Value": "LinkedIn"
},
{
"ElementType": "ClaimsProvider",
"ElementId": null,
"StringId": "MicrosoftAccountExchange",
"Override": false,
"Value": "Microsoft"
},
{
"ElementType": "ClaimsProvider",
"ElementId": null,
"StringId": "SignInWithLogonEmailExchange",
"Override": false,
"Value": "Local Account"
},
{
"ElementType": "ClaimsProvider",
"ElementId": null,
"StringId": "SignInWithLogonNameExchange",
"Override": false,
"Value": "Local Account"
},
{
"ElementType": "ClaimsProvider",
"ElementId": null,
"StringId": "SignUpWithLogonEmailExchange",
"Override": false,
"Value": "Email"
},
{
"ElementType": "ClaimsProvider",
"ElementId": null,
"StringId": "SignUpWithLogonNameExchange",
"Override": false,
"Value": "User ID"
},
{
"ElementType": "UxElement",
"ElementId": null,
"StringId": "alert_message",
"Override": false,
"Value": "Are you sure that you want to cancel choosing an identity provider?"
},
{
"ElementType": "UxElement",
"ElementId": null,
"StringId": "alert_no",
"Override": false,
"Value": "No"
},
{
"ElementType": "UxElement",
"ElementId": null,
"StringId": "alert_title",
"Override": false,
"Value": "Cancel Selection"
},
{
"ElementType": "UxElement",
"ElementId": null,
"StringId": "alert_yes",
"Override": false,
"Value": "Yes"
},
{
"ElementType": "UxElement",
"ElementId": null,
"StringId": "already",
"Override": false,
"Value": ""
},
{
"ElementType": "UxElement",
"ElementId": null,
"StringId": "button_cancel",
"Override": false,
"Value": "Cancel"
},
{
"ElementType": "UxElement",
"ElementId": null,
"StringId": "cancel_message",
"Override": false,
"Value": "The user has canceled choosing an identity provider"
},
{
"ElementType": "UxElement",
"ElementId": null,
"StringId": "intro",
"Override": false,
"Value": "Sign in"
}
]
}

最佳答案

使用 language customization 是正确的。您可以通过更改 LocalizedStrings 中的 UserId 值来修改此占位符的值。

例如,我更改了我这边English(en)统一注册或登录页面

enter image description here

{
"ElementType": "ClaimType",
"ElementId": "UserId",
"StringId": "DisplayName",
"Override": true,
"Value": "Usernametest"
}

enter image description here

关于Azure AD B2C 本地帐户登录页面自定义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66619338/

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