question

YashwanthYenugu-6438 avatar image
0 Votes"
YashwanthYenugu-6438 asked ·

How to build signin only policy in B2C custom policies?

There is a signup_signin policy in b2c starter pack, but for my use case signup shouldn't be there. So, is there a way to remove signup from the login UI? or is there any sample signin policy for me to refer to?

azure-ad-b2c
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

amanpreetsingh-msft avatar image
0 Votes"
amanpreetsingh-msft answered ·

@YashwanthYenugu-6438 Removed the signup link without removing forgot your password link by using below settings:

7367-untitled.png


Please "Accept as answer" wherever the information provided helps you to help others in the community.




untitled.png (8.4 KiB)
· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

amanpreetsingh-msft avatar image
0 Votes"
amanpreetsingh-msft answered ·

@YashwanthYenugu-6438 There is no Signin only policy file available in the starter pack. However, you can update the DataURI parameter under ContentDefinition ID="api.signuporsignin" tag as highlighted in below snip. This will just present you with option to sign-in using local accounts and you will no longer have Sign-up option.

7162-untitled.png


Please "Accept as answer" wherever the information provided helps you to help others in the community.


untitled.png (8.2 KiB)
· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

rbrayb avatar image
0 Votes"
rbrayb answered ·

As per this:

There is a custom SignUpOrSignin policy but no Signin only policy.

You can achieve this by setting SignUp to “False”.

<Item Key=”setting.showSignupLink”>False</Item>

Refer reference to metadata.


· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.