[英]Azure AD B2C passwordless sign in custom Policy
My organization needs passwordless with email authentication in sign in. That mean user just needs to enter an email, then the system will send the one time passcode into that email & let user sign in. I tried this sample & it works for me.我的组织需要通过电子邮件身份验证无密码登录。这意味着用户只需要输入一封电子邮件,然后系统就会将一次性密码发送到该电子邮件中并让用户登录。我尝试了这个示例,它对我有用。 what I want to customize is,in sign in page i want only login with email option to be there.
我想要自定义的是,在登录页面中,我只想使用电子邮件选项登录。 currently it gives option to sign in with social account (facebook) .
目前,它提供了使用社交帐户 (facebook) 登录的选项。 how can i disable this or remove it from login page.
如何禁用此功能或将其从登录页面中删除。
Just comment this line out: https://github.com/azure-ad-b2c/samples/blob/master/policies/passwordless-email/policy/TrustFrameworkExtensions.xml#L71 .只需注释掉这一行: https://github.com/azure-ad-b2c/samples/blob/master/policies/passwordless-email/policy/TrustFrameworkExtensions.xml#L71 。
It will remove the option of social account (facebook) login.它将删除社交帐户 (facebook) 登录选项。
From what I can tell you also need to comment out everything that mentions Facebook:据我所知,您还需要注释掉所有提到 Facebook 的内容:
https://github.com/azure-ad-b2c/samples/blob/master/policies/passwordless-email/policy/TrustFrameworkBase.xml#L441 https://github.com/azure-ad-b2c/samples/blob/master/policies/passwordless-email/policy/TrustFrameworkBase.xml#L441
https://github.com/azure-ad-b2c/samples/blob/master/policies/passwordless-email/policy/TrustFrameworkBase.xml#L1012 https://github.com/azure-ad-b2c/samples/blob/master/policies/passwordless-email/policy/TrustFrameworkBase.xml#L1012
https://github.com/azure-ad-b2c/samples/blob/master/policies/passwordless-email/policy/TrustFrameworkBase.xml#L1018 https://github.com/azure-ad-b2c/samples/blob/master/policies/passwordless-email/policy/TrustFrameworkBase.xml#L1018
https://github.com/azure-ad-b2c/samples/blob/master/policies/passwordless-email/policy/TrustFrameworkExtensions.xml#L22 https://github.com/azure-ad-b2c/samples/blob/master/policies/passwordless-email/policy/TrustFrameworkExtensions.xml#L22
https://github.com/azure-ad-b2c/samples/blob/master/policies/passwordless-email/policy/TrustFrameworkExtensions.xml#L91 https://github.com/azure-ad-b2c/samples/blob/master/policies/passwordless-email/policy/TrustFrameworkExtensions.xml#L91
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.