简体   繁体   English

没有注册的Azure AD B2C页面UI自定义

[英]Azure AD B2C Page UI Customization without Signup

My web app doesn't need signup feature. 我的Web应用程序不需要signup功能。 So i am only looking for signin . 所以我只在寻找signin So i didn't setup anything under signup or sign policies . 所以我没有在signup or sign policies下进行任何设置。

I am trying to add custom login page to signin policy in Azure AD B2C. 我试图将自定义登录页面添加到Azure AD B2C中的signin policy I selected Local Account SignIn as Identity provider. 我选择“ Local Account SignIn作为身份提供者。 But the option Page UI Customization is not enabled and a lock symbol is shown. 但是未启用“ Page UI Customization ”选项,并显示了一个锁定符号。 There is no validation message or information or tooltip explaining what should i do to unlock this feature. 没有验证消息,信息或工具提示来说明我应该怎么做才能解锁此功能。 But this feature is enabled under signup or sign policies blade. 但是可以在signup or sign policies刀片下启用此功能。

Can somebody help me with this. 有人可以帮我这个忙吗?

As stated on the UI customization docs page , sign-in pages (in sign-in and profile edit policies) can only be customized using the company branding feature . UI自定义文档页面所述 ,登录页面(登录和个人资料编辑策略中)只能使用公司品牌功能进行自定义。 The question that spottedmahn linked to in the comments (about changing default picture ) provides some useful steps. spottedmahn在评论中链接到的问题(关于更改默认图片 )提供了一些有用的步骤。

UPDATE #2: I am retracting my update of "hiding" the link on sign-up/sign-in. 更新#2:我正在撤消我在注册/登录时“隐藏”链接的更新。 That's because if you just hide the link, a user can still make a call to the signup endpoint directly and create a user account. 这是因为,即使您仅隐藏链接,用户仍然可以直接调用注册端点并创建用户帐户。 This is not possible through sign-in policy. 通过登录策略无法做到这一点。

I would suggest using the "Sign-up or sign-in" policy for this, and provide a custom template with you own CSS that hides the sign up link: 我建议为此使用“注册或登录”策略,并为您提供一个自定义模板,以隐藏您的注册链接:

.create{
    display: none
}

'create' is the name of the CSS class used for the signup link. “ create”是用于注册链接的CSS类的名称。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM