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
1
vote
0 answers

Azure B2C OTP UI Elements: UserMessageIfVerificationFailedRetryAllowed not working

I have set the OTP user messages using localization. UserMessageIfInvalidCode is working but UserMessageIfVerificationFailedRetryAllowed is not working. I have the retry count set to 5, however it's only the UserMessageIfInvalidCode that shows when…
EmzRalz
  • 11
  • 1
1
vote
1 answer

Azure Active Directory B2C: How to query MS Graph to get a user's alternative security ID?

B2C uses an alternative security ID to uniquely identify users from social accounts. We have a problem where a user enters credentials for a user, but somehow B2C authenticates the user as someone else. I suspect the IDP is returning bad claims…
1
vote
1 answer

How can I determine if the user has an existing B2C session before proceeding with the user journey?

I want to execute a custom policy for a user, but only if the user has already logged in through the signup_signin policy. Can I use the B2C session state? How can I store a claim in the user's B2C session in during signup_signin, and then access…
Daniel Krasnove
  • 204
  • 3
  • 6
1
vote
0 answers

Having issue with Single Sign On configuration in a custom policy for Azure ADB2C

I have two different redirect URIs in my webapp like localhost:4200 and localhost:4201. Trying to have single-sign-on for these two. Based on this document…
1
vote
1 answer

How to use Azure ADB2C signup flow with custom subscription plans options?

I have a scenario and for what I believe is a common scenario for many websites :) I have a website that uses Nextjs for frontend and asp.net core as backend. It uses Azure ADB2C for managing its users. Now When the user is registering, I will…
Murthy
  • 177
  • 2
  • 12
1
vote
1 answer

Unable to translate error message in AD B2C custom policy "Unable to validate the information provided."

We are using AD B2C custom policies for our sign-in flows and we are also doing language customization. Even if it's possible to localize the error messages using custom policies…
GTRekter
  • 905
  • 11
  • 21
1
vote
0 answers

capture id_token at last step of user journey (after send claims)

I have usecase where I need to capture id_token, access_token and refresj_token generated out of sendClaims in the last step of my user journey
1
vote
0 answers

Why doesn't FormatLocalizedString work in Azure AD B2C custom policies?

I need to display a custom message after the code is sent in the password reset flow, I have tried following this https://learn.microsoft.com/en-us/azure/active-directory-b2c/string-transformations#formatlocalizedstring but it does not work. I am…
Pedro
  • 37
  • 3
1
vote
1 answer

How can I retrieve persisted claims from a previous login using a session management technical profile?

I'm not entirely sure how the DefaultSSOSessionProvider works for managing the internal session. For example, take SM-AAD from the custom policy starter pack. If a user runs through the signup_signin policy for the first time, they should now have…
Daniel Krasnove
  • 204
  • 3
  • 6
1
vote
1 answer

Is there a way to display data returned from an API REST response in Azure AD B2C?

I'm working on a password reset flow and I need to display a custom message returned by an API response, but I can't find a way to display this message. I've tried the following.
Pedro
  • 37
  • 3
1
vote
1 answer

What is the structure of the config file for Azure B2C Authetication using react app along with the Authority link structure?

I am trying to get the perfect structure of config and the authority url for my B2C auth application that will be integrated with Azure and React. I did get this structure for my config file and the auth link is specified as in the comments. but I…
1
vote
1 answer

Why isn't NVDA reading my custom error alert consistently?

I've set up a custom html page template for a client's azure b2c login page and the inline errors are getting read back as-expected (can provide additional details about those upon request if it'd be beneficial), but I'm a bit stumped as to why the…
user2887609
1
vote
1 answer

Azure AD B2C using custom HTML to request OTP verification via SendGrid

I'm using Azure AD B2C / IEF Custom Policies. As part of my Password Reset user journey, I want to use SendGrid to handle the email for the OTP / verification code. I also want to use custom HTML templates for the password reset page(s). The Azure…
ShhTot
  • 75
  • 8
1
vote
1 answer

How to change a custom policy to be able to log in with a custom attribute (National Identity Document)

Currently I only find documentation that allows me to change my email / username / phone number, but nothing talks about adding a user attribute as an authentication entity for the login.
1
vote
1 answer

How can I customize my sign up custom policy in azure b2c?

I used this documentation to separate email verification from account creation: Separate the Email Verification and User Registration into 2 separate screens This the result : Custom sign up I changed some labels and create buton in localization…
Nicolas
  • 167
  • 8