You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/active-directory-b2c/add-password-reset-policy.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -335,6 +335,9 @@ Custom policies are a set of XML files that you upload to your Azure AD B2C tena
335
335
336
336
::: zone-end
337
337
338
+
## Troubleshoot Azure AD B2C user flows and custom policies
339
+
Your application needs to handle certain errors coming from Azure B2C service. Learn [how to troubleshoot Azure AD B2C's user flows and custom policies](troubleshoot.md).
340
+
338
341
## Next steps
339
342
340
343
Set up a [force password reset](force-password-reset.md).
This article provides steps for collecting logs from Active Directory B2C (Azure AD B2C) so that you can diagnose problems with your custom policies. Application Insights provides a way to diagnose exceptions and visualize application performance issues. Azure AD B2C includes a feature for sending data to Application Insights.
21
32
22
33
The detailed activity logs described here should be enabled **ONLY** during the development of your custom policies.
@@ -189,4 +200,6 @@ To improve your production environment performance and better user experience, i
189
200
190
201
## Next steps
191
202
192
-
- Learn how to [troubleshoot Azure AD B2C custom policies](troubleshoot-custom-policies.md)
203
+
- Learn how to [troubleshoot Azure AD B2C custom policies](troubleshoot.md)
Your application needs to handle certain errors coming from Azure B2C service. This article highlights some of the common errors and how to handle them.
22
+
23
+
::: zone pivot="b2c-user-flow"
24
+
25
+
## Password reset error
26
+
27
+
This error occurs when the [self-service password reset experience](add-password-reset-policy.md#self-service-password-reset-recommended) isn't enabled in a user flow. Thus, selecting the **Forgot your password?** link doesn't trigger a password reset user flow. Instead, the error code `AADB2C90118` is returned to your application.
28
+
29
+
There are 2 solutions to this problem:
30
+
- Respond back with a new authentication request using Azure AD B2C password reset user flow.
31
+
- Use recommended [self service password resect (SSPR) experience](add-password-reset-policy.md#self-service-password-reset-recommended).
32
+
33
+
34
+
## User canceled the operation
35
+
Azure AD B2C service can also return an error to your application when a user cancels an operation. The following are examples of scenarios where a user performs a cancel operation:
36
+
- A user policy uses the recommended [self service password resect (SSPR) experience](add-password-reset-policy.md#self-service-password-reset-recommended) with a consumer local account. The user selects the **Forgot your password?** link , and then selects **Cancel** button before the user flow experience completes. In this case, Azure AD B2C service returns error code `AADB2C90091` to your application.
37
+
- A user chooses to authenticate with an external identity provider such as [LinkedIn](identity-provider-linkedin.md). The user select **Cancel** button before authenticating to the identity provider itself. In this case, Azure AD B2C service returns error code `AADB2C90273` to your application. Learn more about [error codes Azure Active Directory B2C service return](error-codes.md).
38
+
39
+
To handle this error, fetch the **error description** for the user and respond back with a new authentication request with the same user flow.
40
+
41
+
::: zone-end
42
+
43
+
::: zone pivot="b2c-custom-policy"
17
44
18
45
If you use Azure Active Directory B2C (Azure AD B2C) [custom policies](custom-policy-overview.md), you might experience challenges with policy language XML format or runtime issues. This article describes some tools and tips that can help you discover and resolve issues.
19
46
@@ -383,7 +410,7 @@ The cause for this error is similar to the one for the claim error. Check the pr
383
410
384
411
### User is currently logged as a user of 'yourtenant.onmicrosoft.com' tenant...
385
412
386
-
You login with an account from a tenant that is different than the policy you try to upload. For example, you sign-in with [email protected], while your policy `TenantId` is set to `fabrikam.onmicrosoft.com`.
413
+
You login with an account from a tenant that is different than the policy you try to upload. For example, your sign-in with [email protected], while your policy `TenantId` is set to `fabrikam.onmicrosoft.com`.
387
414
388
415
```xml
389
416
<TrustFrameworkPolicy ...
@@ -462,6 +489,9 @@ To fix this type of error, when you upload the policy, select the **Overwrite th
462
489
463
490

Copy file name to clipboardExpand all lines: articles/active-directory-b2c/user-flow-custom-attributes.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -202,7 +202,7 @@ Use the following steps to remove extension/custom attribute from a user flow:
202
202
1. On the **Portal settings | Directories + subscriptions** page, find your Azure AD B2C directory in the Directory name list, and then select **Switch**
203
203
1. Choose **All services** in the top-left corner of the Azure portal, search for and select **Azure AD B2C**.
204
204
1. Select **User attributes**, and then select the attribute you want to delete.
205
-
1. Select **Delete**
205
+
1. Select **Delete**, and then select **Yes** to confirm.
0 commit comments