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

B2C Account Error - Customise Error Page or Adjust Custom Policy?

In the sample that links a Federated login against a pre-created Local Account. If a user does not exist, then an exception is thrown. This redirects to https:///MicrosoftIdentity/Account/Error Which, as far as I understand, is this page…
Mitkins
  • 4,031
  • 3
  • 40
  • 77
2
votes
1 answer

email claim not coming from federated OIDC ADB2C IDP

We are using B2C and have successfully connected an AD federation using OIDC, that all works fine. However, we want to enable an external B2C IdP instance to enable another federation. We configured our host B2C the same as the AD one, getting the…
widley
  • 21
  • 1
2
votes
2 answers

How to avoid hardcoding ServiceUrl in AD B2C custom policy API connector?

I have a REST API connector in my B2C custom policy. All examples I have seen hard code the value of the ServiceUrl metadata item in the REST technical profile. For example: REST APIs
mickmelon
  • 43
  • 5
2
votes
1 answer

Azure B2C Custom Policy: How do you reset the TOTP settings in the event that a user lost access to there authenticator app?

In my custom policy I used the example here: https://github.com/azure-ad-b2c/samples/tree/master/policies/totp I have TOTP working, but I want to make sure I will be able to reset it if a user doesn't have access to their authenticator app…
2
votes
0 answers

Change configuration based on URL within Blazor app

I'm hosting a Blazor Wasm site which has multiple domain names, using Azure B2C I need to navigate to the right Azure B2C branded policy. Is there a way to change configuration depending on the URL. Or if there's a way I can dynamically change the…
Rav
  • 703
  • 4
  • 13
2
votes
2 answers

Simplify Embeded Password Reset Azure B2C Custom Policies

I need to use custom policies to create authentication and password reset flow for my project. I started using the Azure B2C embedded password reset. For the password reset flow, here is the result Is it possible to either : remove the third step…
Coulemelle
  • 341
  • 1
  • 4
  • 13
2
votes
0 answers

Custom policy: Invalidate B2C session after account deletion

We have a custom policy to allow users to delete their accounts, following something similar to https://github.com/azure-ad-b2c/samples/blob/master/policies/delete-my-account/policy/DeleteMyAccount.xml If we then invoke another custom policy the B2C…
NigelW61
  • 51
  • 2
2
votes
0 answers

How to get custom B2C policy to send a oauth2 bearer (token) to my custom SignUp/SignIn API

I am trying to have my custom B2C policy to communicate with my custom SignUp/SignIn API and authenticate via oauth2 bearer (not static bearer). I have followed the instructions found here: 1 (to the letter) but unable to get it working. I cannot…
2
votes
0 answers

Error from SAML TechnicalProfile when executed within SubJourney "80131515: ValidateAsync is not supported for Web.TPEngine.Providers.RestfulProvider"

I am setting up a SAML IDP in Azure AD B2C following this guide. It works fine when I execute it as an OrchestrationStep in a UserJourney but when I execute it as part of a SubJourney I get the following exception: [ { "Kind": "Headers", …
2
votes
4 answers

AADB2C90088: The provided grant has not been issued for this endpoint

We are using custom policies for Sign in and reset password in Azure B2C, when user is resetting his password and after doing all the process, when user tries to login using new password and OTP, below error is getting displayed and then user is…
2
votes
1 answer

Azure AD b2c Custom policy: Change User Profile picture

I am trying to change or upload a user profile while signup or profile update in azure active directory b2c using custom policy. I found a "thumbnailPhoto" property having datatype Edm.Stream by using this I am trying to create a custom ClaimType…
2
votes
1 answer

Azure B2C Preconditions and checking for empty strings

Is there a way, in the preconditions step of an orchestrationstep to check if a claim is set to empty string? I've tried the below and it doesn't work, it never executes the SkipThisOrchestrationStep
Phaded
  • 99
  • 1
  • 1
  • 6
2
votes
1 answer

Azure B2C Password Change gives me invalid Username/Password

I'm trying to implement a Azure AD B2C Password Change policy for Azure B2C. I've used this policy and updated the client_id, resource_id, IdTokenAudience values in the "login-NonInteractive" technical profile accordingly. When I execute this policy…
2
votes
1 answer

How to populate Display Name with Email using B2C custom user flow

I'm implementing a local user B2C custom user flow policy based on Microsoft's guide. My custom signup/signin policy is working but I want to modify it so that the Display Name field in B2C is automatically populated with the user's email…
j-petty
  • 2,668
  • 1
  • 11
  • 20
2
votes
1 answer

How to modify the Azure AD B2C SignIn/Signup page for Azure web app

I have an Azure web application that uses Azure AD B2C with Microsoft Identity user flow. The resulting page for SignIn and SignUp uses non-US English for the display prompts for Name and Last Name (the default apparently uses as display prompts…