1
votes

I am trying to create an azure b2c authentication for my Xamarin Forms Android application including multi factor authentication. With the following constraints.

  • I need to restrict / hide forgot password & Sign-up option from login page.
  • Multifactor – Authentication, I need only sms option. I don’t want to go with call & email option.

How I can add these restrictions to my authentication-login page?

I see below set of policies in Portal but, I don’t know how to configure it. Can anyone help me to configure this Policies.

enter image description here

2

2 Answers

1
votes

I need to restrict / hide forgot password & Sign-up option from login page.

This one is easy, just create a Sign-In policy (not Sign-up or Sign-in)

Multifactor – Authentication, I need only sms option. I don’t want to go with call & email option.

AFAIK you can only enable or disable it. I also don't find any option to restrict that in the documentation.

-1
votes

The easiest approach for hiding elements is to use the page UI customization feature with styles such as:

#api[data-name=Unified] #forgotPassword,
#api[data-name=Unified] .divider,
#api[data-name=Unified] .create {
    display: none;
}

#api[data-name=Phonefactor] #verifyPhone {
    display: none;
}