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
3
votes
0 answers

Azure B2C Custom policy sign-up not working Error: The page cannot be displayed because an internal server error has occurred

I've deployed started pack b2c custom policies using automated tool. Registered SAML application by following MS guidelines. I can see B2C login screen with sign-in and Sign-up buttons. However, when I click sign up, getting an strange error "The…
Karikalan
  • 107
  • 10
3
votes
2 answers

How to enrich azure b2c token with custom claims using api connectors and asp net core web api

I have a user flow B2C_1_singupsingin1 I added an api connector, embed it in this stream and the endpoint url for the API call. Used…
3
votes
2 answers

How do I make the email address (signInName) read only for the sign-in form

I am creating an Azure AD B2C custom policy for inviting users to user my applications. As part of the invite I set custom user attributes. In my user journey, if the user exists I send them to a sign in screen with the email pre-populated. How do I…
ghnz
  • 190
  • 6
3
votes
1 answer

How to support anonymous users in B2C?

We require architectural advice for our setup. We are developing a mobile application which will: Use B2C Authentication Support anonymous users (allowing users to skip the registration process) Still perform a form of Authentication on API…
Evelyn
  • 33
  • 4
3
votes
1 answer

How to delete claims from b2c custom policy claims claims bag (claims collection)?

I am trying to remove all the claims from the claims bag, if a certain step/condition in my custom policy is reached, however I couldn't find any information about that. Then I tried to use the NullClaim Transformation for strings, but I couldn't…
3
votes
2 answers

AAD Request to https://graph.windows.net method GET as request body is malformed while searching existing user with email

I am already using B2C custom policy to let employees signin using external IdP, now I want to use my organization's Azure enterprise AD app as IdP. All employees are already registered using external IdP but external IdP subscription will expire…
3
votes
1 answer

Azure AD B2C - Custom Policy "Session" is left in incorrect state after running the "Self-Served Password Reset"

We have a Custom Policy that is based on the SocialAndLocalAccounts starter pack. We have been adding support from Home Realm Discovery based on this sample HomeRealmDiscovery-Modern to redirect users using third-party-providers to their correct…
Alboz
  • 1,833
  • 20
  • 29
3
votes
1 answer

Can a single item from a specified index be retrieved from a stringCollection using a claims transformation?

GetSingleItemFromStringCollection exists, but it only allows retrieval of the first item in a collection. Is there a way to retrieve an element at a specified index?
Daniel Krasnove
  • 204
  • 3
  • 6
3
votes
1 answer

Azure B2C - Pass Parameter via URL to ClaimType to Claim in Token

I want to pass a parameter via the request URL to B2C and then be able to send this out as a claim in the access token. I am guessing I will need to capture this in a claimType. How do I go about this? Thanks!
Bandz
  • 253
  • 4
  • 15
3
votes
1 answer

How to reset ADB2C custom policy custom HTML cache?

I have a custom ADB2C policy that specifies tags to use custom HTML. The custom HTML is stored in Azure Blob Storage. The problem I have is that when I upload a new version of the custom HTML the changes don't show up when I go…
Dan
  • 7,446
  • 6
  • 32
  • 46
3
votes
1 answer

How to troubleshoot RESTful endpoint response in Azure AD B2C custom policy

I am trying to get the groups that a certain user belongs to in their sign-in journey. I am using calling RESTful graph API for that. Here are my Technical Profiles, the idea is to get token for my graph API app and use the token to do a…
ray
  • 11,310
  • 7
  • 18
  • 42
3
votes
0 answers

Localizing elements in Azure AD B2C for password reset policy

I'm trying to localize elements associated with api.localaccountpasswordreset. I had no problem setting up localization for api.signuporsignin, so I followed the same process I can't get the content to update for the Send verification code/Verify…
snake
  • 33
  • 3
3
votes
2 answers

Custom Policy for Force Reset password on first login not working

I am trying to use https://github.com/azure-ad-b2c/samples/blob/master/policies/force-password-reset-first-logon to implement the Password reset on initial login for local accounts. I have followed all the steps in…
DevM
  • 31
  • 3
3
votes
1 answer

Use Managed Identity with Azure B2C Directly or with KeyVault

Goal: Prevent the use of client ID and secrets when making calls to Graph API. Is either of the following possible? Use Azure Managed Identity (that has been given Microsoft Graph API permissions) in applications using Azure B2C for Authentication.…
3
votes
1 answer

Azure AD B2C Custom Policies and remove display name from sign up UI

I've been playing around with AD B2C custom policies using the Starter Pack and I'm trying to work out how to NOT collect the Display Name on the sign up page, but record it by concatenating the captured GivenName and Surname. I've worked out how to…
Dazfl
  • 627
  • 8
  • 23
1 2
3
70 71