Skip to content

Commit 45c756c

Browse files
Merge pull request #173043 from v-hhunter/hannah-1872298-addissueIDinstruction
[APIM] add ID tokens step
2 parents 5aa9205 + bafc67b commit 45c756c

File tree

1 file changed

+20
-14
lines changed

1 file changed

+20
-14
lines changed

articles/api-management/api-management-howto-aad-b2c.md

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: dlepow
77

88
ms.service: api-management
99
ms.topic: how-to
10-
ms.date: 07/07/2021
10+
ms.date: 09/28/2021
1111
ms.author: danlep
1212
---
1313

@@ -16,20 +16,20 @@ ms.author: danlep
1616

1717
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.
1818

19-
This guide shows you the 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.
2020

2121
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).
2222

2323
## Prerequisites
2424

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).
2727

2828
[!INCLUDE [premium-dev-standard.md](../../includes/api-management-availability-premium-dev-standard.md)]
2929

3030
## Configure sign up and sign in user flow
3131

32-
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).
3333

3434
1. In the [Azure portal](https://portal.azure.com), access your Azure Active Directory B2C tenant.
3535
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
7272
* Record the key in a safe location. This secret value is never displayed again after you leave this page.
7373
1. Switch back to the API Management **Add identity provider** page, and paste the key into the **Client secret** text box.
7474
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.
7676
* Select **Save**.
7777
1. Switch back in the API Management **Add identity provider** page.
7878
* 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**.
8080
* Specify the **Signup Policy** and **Signin Policy** from the B2C tenant policies.
8181
* Optionally provide the **Profile Editing Policy** and **Password Reset Policy**.
8282

@@ -85,12 +85,12 @@ In this section, create a user flow in your Azure Active Directory B2C tenant co
8585

8686
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.
8787

88-
## Developer portal - add Azure AD B2C account authentication
88+
## Developer portal - add Azure Active Directory B2C account authentication
8989

9090
> [!IMPORTANT]
9191
> 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.
9292
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.
9494

9595
1. To sign in by using Azure Active Directory B2C, open a new browser window and go to the developer portal. Select **Sign in**.
9696

@@ -103,30 +103,36 @@ When the signup is complete, you're redirected back to the developer portal. You
103103

104104
:::image type="content" source="media/api-management-howto-aad-b2c/developer-portal-home.png" alt-text="Sign in to developer portal complete":::
105105

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.
107107

108108
The **Sign-up form: OAuth** widget represents a form used for signing up with OAuth.
109109

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
111111

112112
[!INCLUDE [api-management-portal-legacy.md](../../includes/api-management-portal-legacy.md)]
113113

114-
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.
115118

116119
:::image type="content" source="media/api-management-howto-aad-b2c/b2c-dev-portal.png" alt-text="Sign up in legacy developer portal":::
120+
117121
1. Choose to sign up with **Azure Active Directory B2C**.
118122

119123
:::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":::
120124

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.
122126

123127
> [!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.
125129
126130
:::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":::
127131

128132
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.
129133

134+
135+
130136
## Next steps
131137

132138
* [Azure Active Directory B2C overview]

0 commit comments

Comments
 (0)