Questions tagged [azure-ad-b2c-custom-policy]

Azure AD B2C custom policies are configuration files for defining Azure AD B2C tenant. They are commonly used for addressing complex scenario that cannot be addressed through user flows.

Sample scenarios https://github.com/azure-ad-b2c/samples/tree/master#sample-scenarios

To provide product feedback, visit the Azure Active Directory B2C Feedback page.

1054 questions
2
votes
1 answer

How to add a link to offer an alternate route in Azure B2C custom policy

I've followed one of the provided samples to add TOTP multi factor authentication supported by a phone app: https://github.com/azure-ad-b2c/samples/tree/master/policies/custom-mfa-totp I'm therefore able to offer users the ability to enter a TOTP…
ajbrun
  • 161
  • 2
  • 13
2
votes
0 answers

Split email input & registration link from password controls in Azure B2C custom policy login

I've been going through the Azure AD B2C samples and have put together something that uses home realm discovery: https://github.com/azure-ad-b2c/samples/tree/master/policies/home-realm-discovery-modern I therefore currently have two screens where on…
ajbrun
  • 161
  • 2
  • 13
2
votes
1 answer

Store "email" in contact info during registration - Azure AD B2C Custom policy

I've a custom policy for sign up & sign in and, in the last step, I ask the user to enter the email, where I send a verification code and verify the code (following one of the examples provided by Microsoft). However, I'd like to store, in the…
2
votes
0 answers

How to read state parameter from custom policies in AAD B2C

We are developing a web application using Azure AD B2C as the identity provider. For that we use custom policies and during the authentication flow, AAD B2C communicate with a REST API to get extended user claims. Also, we want to pass value to the…
Sampath Dilhan
  • 749
  • 6
  • 17
2
votes
2 answers

Azure B2C Custom Policy Sign Up UI- Remove display name

I have set up custom policies for Azure AD B2C using the LocalAndSocialAccount starter pack. I am trying to remove the display name from the sign up UI. I have read previously that this can be accomplished simply by removing
2
votes
1 answer

Intermittent Azure AD B2C exceptions: IDX10614: AsymmetricSecurityKey.GetSignatureFormater() throws an exception

We're using AAD B2C with custom policies for some time now, and everything worked as it should, but all of a sudden we started getting exceptions on sign-in policy. To make things worse, sometimes it does work but 4 out of 5 times we get an…
botja
  • 116
  • 1
  • 6
2
votes
1 answer

Detect social account existence flow using custom policies on Azure AD B2C

I am struggling to get my head around how to implement a custom policy for the following flow: User lands on the login page and that login page only contains an email input. User enters email address and clicks continue if user has already…
Jacques Snyman
  • 4,115
  • 1
  • 29
  • 49
2
votes
2 answers

How do I specify a custom policy to only the first time a user signs in?

Context We have created a custom policy used when users are invited to our SPA application. The policy does one time user initialization like creating records in our database by invoking the REST API capabilities. Everything here works as expected:…
2
votes
0 answers

Set up phone sign-up and sign-in with custom policies in Azure AD B2C

I am working on Azure AD B2C phone sign-up and sign-in with custom policies. I followed the documentation and completed the flow and it's working fine as shown in the documentation. But I want to remove that additional email address verification…
2
votes
1 answer

Custom B2C policy with custom TOTP fails validation with error: "Please use page contract in content definitions when enabling JavaScript"

I am working on a IEF Policy that supports custom TOTP. I am using the following sample code as basis for my work: https://github.com/azure-ad-b2c/samples/tree/master/policies/custom-mfa-totp I have created the Service that supports the TOTP…
Diablo666
  • 41
  • 2
2
votes
1 answer

How to troubleshoot validation errors in Azure Active Directory B2C custom attributes

Azure AD B2C Custom Policy is failing validation and there is no reference to what is causing the validation error. I already had custom policies defined for my application to start with and everything works fine prior to my adding a simple…
1
vote
1 answer

ADB2C Read extension properties us SignInWithMagicLink Custome Policy

I am using the Custom Policy for signing with SignInWithMagicLink here https://github.com/azure-ad-b2c/samples/blob/master/policies/sign-in-with-magic-link/policy/SignInWithMagicLink.xml I have extension properties defined in ADB2C, however I am…
manish kiranagi
  • 87
  • 1
  • 10
1
vote
0 answers

Azure B2C Custom policy - Want to read system generated exception in custom policy

When users enter invalid email address and password, I want to log his/her details like email and reason for exception in DB. In application insights, I see below error message "A user with the specified credentials could not be found." Is there…
Vihaan
  • 11
  • 1
1
vote
1 answer

How to add JavaScript event handlers for action completion in B2C emailVerificationControl?

I am using emailVerificationControl and want to add JavaScript callbacks on SendCode and VerifyCode actions successful completion events. E.g. when user clicked but_send_code or but_verify_code, control is updated and shows success_send_code_msg and…
Michael Freidgeim
  • 26,542
  • 16
  • 152
  • 170
1
vote
0 answers

How in B2C sign-up Email Verification control “Verify Code” button to open Registration page

The sample “Separate the Email Verification and User Registration into 2 separate screens” https://github.com/azure-ad-b2c/samples/tree/master/policies/split-email-verification-and-signup has separate steps : 2. Click “Verify code” that returns…
Michael Freidgeim
  • 26,542
  • 16
  • 152
  • 170