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

Programatically need to update the strongauthentication number for MFA from users contact info using mobile number in azure ADB2C

I am migrating our existing website users to ADB2C via Graph API, and I want to enable MFA for the users. So I am trying to update a Azure ADB2C user's mobile number to strongauthentication phone number for MFA so that when a user login, he would…
2
votes
2 answers

Azure B2C: Generating the code_challenge

My Azure app is a single-page application and when trying to implement email signup via invite, I get the error: AADB2C99059: The supplied request must present a code_challenge Does our application server generate this code_challenge or should…
Joseph Woolf
  • 500
  • 5
  • 14
2
votes
1 answer

Azure B2C Localization of Show Password / Password Toggler label

I have successfully been able to localize the text of all elements in our B2C custom policy files, with the exception of the 'show password' / password toggler labels, which stubbornly refuse to change from their default values. When using F12 I can…
penguin178
  • 344
  • 1
  • 3
  • 20
2
votes
0 answers

Working example of FormatLocalized ClaimsTransformation in Azure AD B2C custom policies?

Does someone have a working example of a ClaimsTranformation of type "FormatLocalizedString" in Azure AD B2C Custom policies ? I know that this type exists (as it's in the official documentation) but can't seem to find any example of the web (and of…
Marine
  • 99
  • 11
2
votes
1 answer

Saving custom defined User attributes with azure AD B2C custom policy

we are trying to set a custom user attribute we have managed to show to define it the TrustFrameworkExtensions.xml ClaimsSchema extension_GDPR_CONSENT
2
votes
1 answer

Mitigating scenario where claim from external IdP can be either string or stringCollection

My company has to federate with several external IdPs (using industry-standard solutions such as AD FS, F5, etc) which issue group claims. When a user has multiple groups, these IdPs issue a response with the claim in the following format: "groups":…
2
votes
2 answers

Can user flows and custom policies co-exist?

I need to test out a custom policy but I'm not sure if I'll break my existing user flows if I add a custom policy. Will adding a custom policy break any existing user flows?
ton.yeung
  • 4,793
  • 6
  • 41
  • 72
2
votes
0 answers

B2C refresh token lifetime for SPA - Can it be extended or else be setup as a sliding expiration

We are using B2C for our SPA and wanted to know if we can setup a sliding expiration for the 24 hr refresh token lifetime. Currently if a user is logged in and active still the user will get logged out after 24 hrs. Is there a way to extend the…
Sharat
  • 21
  • 2
2
votes
1 answer

Convert DateTime claim to string in Azure AD B2C custom policy

I had a look at the below Date transforms documented but couldnt find one which converts datetime to string. How would you achieve this in the custom policy? https://learn.microsoft.com/en-us/azure/active-directory-b2c/date-transformations Reason is…
2
votes
1 answer

Revoke Access from Azure AD B2C with Custom Policys

We need to log out a user from a device that is integrated with Azure AD B2C. The application is using Azure AD B2C with Custom Policy, and there seems to be an issue revoking refresh tokens in this combination. (We are using authorization code…
2
votes
1 answer

Get User profile pic using custom policy with azure B2C

I'm testing my login system that uses only Microsoft accounts as login. I want when a user logs in I want to read there profile and also their profile picture. The claim I have right now:
2
votes
1 answer

Azure B2C: Purpose of socialIdpUserId (or issuerUserId) claim

While looking through the Azure B2C Custom Policy Starter Pack, I noticed that the claim named socialIdpUserId is declared in the LocalAccount's Base Framework file, but was never used anywhere else in the file or the files that inherit from it. …
Joseph Woolf
  • 500
  • 5
  • 14
2
votes
2 answers

Redirect uri in Azure B2C with query string. Error detail: URL may not contain a query string

I'm trying to use Azure B2C OAuth for Alexa account linking with implicit flow.Below is the redirect url from Alexa https://alexa.amazon.co.jp/spa/skill/account-linking-status.html?vendorId=XXXXXXXXXX But adding this gives below error in Azure B2C…
2
votes
2 answers

Azure AD B2C - Forgot Password User Journey - Don't Allow old password?

I'm building an Azure AD B2C configuration based on custom policies. Sign in, profile edit, password change, etc. are already working as wanted. But currently I'm struggling with the password forgot policy. I want to achieve that the new password…
as1984
  • 37
  • 2
2
votes
1 answer

How to create Azure AD B2C Identity Experience Framework policy key where name & secret are input params using powershell command

How to create Azure AD B2C Identity Experience Framework policy key where name & secret are input params using powershell command. I am not finding any source on internet for it