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
4
votes
1 answer

Azure AD B2C Customizing loading screen for Custom Policy

I'm creating a custom policy and I'm trying to customize the behavior when the policy is loading between different pages. Currently, the behavior is that the screen darkens and some text is displayed that overlaps with the rest of the UI. If…
Forgesemo
  • 43
  • 4
3
votes
0 answers

Localization in B2C Custom Policy - Missing required elements

I have to localize a sign-up, and a password reset custom policy in German, and I have a few questions regarding that: There seem to be no default translation for the "Missing required element: {0}" error, which shows when I for example enter a…
Jonasgj
  • 63
  • 3
3
votes
0 answers

Azure AD B2C automatic logout after session timeout

I have a SPA on Blazor that is already migrated to B2C and login/logout functionality works fine. I also created and run a SignUp_SignIn custom policy according to this MSDN article and everything seems to work fine. After the session is expired, if…
3
votes
1 answer

AzureADB2C Client Credentials Grant with Client Assertion as Opposed to Static Secret

I have a requirement to provide API to our consumers. The intention is to secure the API using AzureAD B2C - Client Credential Grant flow. I have created a custom policy on B2C tenant that provides the access token. Things work fine with the…
app arch
  • 63
  • 3
3
votes
2 answers

Combined TOTP vs SMS vs Call MFA option on the B2C application

I tested the following sample: https://github.com/azure-ad-b2c/samples/tree/master/policies/pwd-reset-via-email-or-phone and I can see below result: However, I want to add the TOTP option to this page. I tried using the following sample but it is…
3
votes
1 answer

Migrate Azure AD B2C user flows to custom policies

We are considering to start with the built-in user flows for our application in B2C. We want to benefit from the standard flows to register users, have forgotten password workflow in place, have MFA, etc... However, as business requirements for our…
Sam Vanhoutte
  • 3,247
  • 27
  • 48
3
votes
1 answer

Combining two methods of MFA in Azure B2C

I'm interested in whether I can configure both methods of 2FA for my app in B2C? So that a user can then choose how he wants to sign in: with MFA via SMS or via authenticator app
3
votes
1 answer

Additional user input in B2C signin custom policy

I want to, during the sign in flow, ask the user for additional input, which would be used as an inputClaim in one of the next steps of the user journey in a custom policy. The value does not need to be persisted. Ideally, it would be done in the…
3
votes
1 answer

SendGrid API from Custom Policy sends email with no subject

I am using custom policy that calls SendGrid API to send mails for OTP. The API is successful in sending however the subject part does not reflect the value from the request. This is my custom policy code that generates the…
3
votes
0 answers

Azure B2C Custom Policy getting 500 Internal Server Error when trying to return alternativeSecurityIds in OutputClaims

I have a User Journey that is taking a user's email address and trying to check if the user is a federated user (as a means to obfuscate the list of all Identity Providers and directly sign a user in with the desired provider). We are calling…
3
votes
2 answers

Validation error uploading Azure AD B2C policy

I created an Azure AD B2C tenant with custom policies last year. Now I am trying to upload the same policies (with IDs changed as necessary) to a new tenant that we have just created and I get the following error when uploading the reset-password…
Jack A.
  • 4,245
  • 1
  • 20
  • 34
3
votes
1 answer

How to show different background images and logos in Azure ADB2C per customer (passed in Url)

We have a web application that uses Azure ADB2C to authenticate users. Therefore we currently use a custom landing page with a login button that redirects the user to Azure ADB2C login page. We use company branding for logo and background on login…
Uwe Becker
  • 123
  • 7
3
votes
4 answers

AAD-FindLocalAccountWithSocialEmail produces No suitable claims providers were found

I am attempting to auto-link a social provider login to an existing local account. I'm using the auto-linking sample, but doing so having replaced the sample Facebook ClaimsProviders/etc with ones for Google. Using my version of…
r2musings
  • 63
  • 8
3
votes
2 answers

How can I use Custom Roles on Azure Ad B2C?

My API needs three types of users and I want to manage it with custom role definitions. Is it possible to create roles on Azure B2c then assign these roles to the users by Microsoft Graph API?
3
votes
1 answer

In Azure AD B2C, how can we account link automatically at sign up and sign in? User should only ever have one account

The Azure B2C sample policies (e.g Azure AD B2C account linkage at signup) provide a number of ways to link accounts, but they all rely on user input with regard to linking and unlinking accounts, which can be confusing. I believe a common scenario…
1
2
3
70 71