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/api-management/api-management-howto-aad-b2c.md
+20-14Lines changed: 20 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ author: dlepow
7
7
8
8
ms.service: api-management
9
9
ms.topic: how-to
10
-
ms.date: 07/07/2021
10
+
ms.date: 09/28/2021
11
11
ms.author: danlep
12
12
---
13
13
@@ -16,20 +16,20 @@ ms.author: danlep
16
16
17
17
Azure Active Directory B2C is a cloud identity management solution for consumer-facing web and mobile applications. You can use it to manage access to your API Management developer portal.
18
18
19
-
This guide shows youthe configuration that's required in your API Management service to integrate with Azure Active Directory B2C. If you are using the deprecated legacy developer portal, some steps differ, as noted in this article.
19
+
In this tutorial, you'll learn the configuration required in your API Management service to integrate with Azure Active Directory B2C. As noted later in this article, if you are using the deprecated legacy developer portal, some steps will differ.
20
20
21
21
For information about enabling access to the developer portal by using classic Azure Active Directory, see [How to authorize developer accounts using Azure Active Directory](api-management-howto-aad.md).
22
22
23
23
## Prerequisites
24
24
25
-
* An Azure Active Directory B2C tenant to create an application in. For more information, see [Azure Active Directory B2C overview](../active-directory-b2c/overview.md).
26
-
* If you don't already have an API Management service, complete the following quickstart: [Create an Azure API Management instance](get-started-create-service-instance.md)
25
+
* An Azure Active Directory B2C tenant in which to create an application. For more information, see [Azure Active Directory B2C overview](../active-directory-b2c/overview.md).
26
+
*An API Management instance. If you don't already have one, [create an Azure API Management instance](get-started-create-service-instance.md).
In this section, create a user flow in your Azure Active Directory B2C tenant containing both sign up and sign in policies. For detailed steps, see [Create user flows and custom policies in Azure Active Directory B2C](../active-directory-b2c/tutorial-create-user-flows.md?pivots=b2c-us).
32
+
In this section, you'll create a user flow in your Azure Active Directory B2C tenant containing both sign up and sign in policies. For detailed steps, see [Create user flows and custom policies in Azure Active Directory B2C](../active-directory-b2c/tutorial-create-user-flows.md?pivots=b2c-us).
33
33
34
34
1. In the [Azure portal](https://portal.azure.com), access your Azure Active Directory B2C tenant.
35
35
1. Under **Policies**, select **User flows** > **+ New user flow**.
@@ -72,11 +72,11 @@ In this section, create a user flow in your Azure Active Directory B2C tenant co
72
72
* Record the key in a safe location. This secret value is never displayed again after you leave this page.
73
73
1. Switch back to the API Management **Add identity provider** page, and paste the key into the **Client secret** text box.
74
74
1. Switch back to the B2C app registration. In the left menu, under **Manage**, select **Authentication**.
75
-
* Under **Implicit grant**, select the **Access tokens** check box.
75
+
* Under **Implicit grant and hybrid flows**, select both the **Access tokens**and **ID tokens**check boxes.
76
76
* Select **Save**.
77
77
1. Switch back in the API Management **Add identity provider** page.
78
78
* In **Signin tenant**, specify the domain name of the Azure Active Directory B2C tenant.
79
-
* The **Authority** field lets you control the Azure AD B2C login URL to use. Set the value to **<your_b2c_tenant_name>.b2clogin.com**.
79
+
* The **Authority** field lets you control the Azure Active Directory B2C login URL to use. Set the value to **<your_b2c_tenant_name>.b2clogin.com**.
80
80
* Specify the **Signup Policy** and **Signin Policy** from the B2C tenant policies.
81
81
* Optionally provide the **Profile Editing Policy** and **Password Reset Policy**.
82
82
@@ -85,12 +85,12 @@ In this section, create a user flow in your Azure Active Directory B2C tenant co
85
85
86
86
After the changes are saved, developers will be able to create new accounts and sign in to the developer portal by using Azure Active Directory B2C.
87
87
88
-
## Developer portal - add Azure AD B2C account authentication
> You need to [republish the developer portal](api-management-howto-developer-portal-customize.md#publish) when you create or update Azure Active Directory B2C configuration settings for the changes to take effect.
92
92
93
-
In the developer portal, sign-in with Azure AD B2C is possible with the **Sign-in button: OAuth** widget. The widget is already included on the sign-in page of the default developer portal content.
93
+
In the developer portal, sign-in with Azure Active Directory B2C is possible with the **Sign-in button: OAuth** widget. The widget is already included on the sign-in page of the default developer portal content.
94
94
95
95
1. To sign in by using Azure Active Directory B2C, open a new browser window and go to the developer portal. Select **Sign in**.
96
96
@@ -103,30 +103,36 @@ When the signup is complete, you're redirected back to the developer portal. You
103
103
104
104
:::image type="content" source="media/api-management-howto-aad-b2c/developer-portal-home.png" alt-text="Sign in to developer portal complete":::
105
105
106
-
Although a new account is automatically created whenever a new user signs in with Azure AD B2C, you may consider adding the same widget to the sign-up page.
106
+
Although a new account is automatically created whenever a new user signs in with Azure Active Directory B2C, you may consider adding the same widget to the signup page.
107
107
108
108
The **Sign-up form: OAuth** widget represents a form used for signing up with OAuth.
109
109
110
-
## Legacy developer portal - how to sign up with Azure AD B2C
110
+
## Legacy developer portal - how to sign up with Azure Active Directory B2C
1. To sign up for a developer account by using Azure AD B2C, open a new browser window and go to the legacy developer portal. Click the **Sign up** button.
114
+
> [!NOTE]
115
+
> To properly integrate B2C with the legacy developer portal, use **standard v1** user flows, in combination with enabling [password reset](/active-directory-b2c/user-flow-self-service-password-reset.md) before signing up/signing into a developer account using Azure Active Directory B2C.
116
+
117
+
1. Open a new browser window and go to the legacy developer portal. Click the **Sign up** button.
115
118
116
119
:::image type="content" source="media/api-management-howto-aad-b2c/b2c-dev-portal.png" alt-text="Sign up in legacy developer portal":::
120
+
117
121
1. Choose to sign up with **Azure Active Directory B2C**.
118
122
119
123
:::image type="content" source="media/api-management-howto-aad-b2c/b2c-dev-portal-b2c-button.png" alt-text="Sign up with Azure Active Directory B2C":::
120
124
121
-
3. You're redirected to the signup policy that you configured in the previous section. Choose to sign up by using your email address or one of your existing social accounts.
125
+
1. You're redirected to the signup policy you configured in the previous section. Choose to sign up by using your email address or one of your existing social accounts.
122
126
123
127
> [!NOTE]
124
-
> If Azure Active Directory B2C is the only option that's enabled on the **Identities** tab in the publisher portal, you'll be redirected to the signup policy directly.
128
+
> If Azure Active Directory B2C is the only option enabled on the **Identities** tab in the publisher portal, you'll be redirected to the signup policy directly.
125
129
126
130
:::image type="content" source="media/api-management-howto-aad-b2c/b2c-dev-portal-b2c-options.png" alt-text="Sign up options in legacy developer portal":::
127
131
128
132
When the signup is complete, you're redirected back to the developer portal. You're now signed in to the developer portal for your API Management service instance.
0 commit comments