Skip to content

Commit e71c098

Browse files
Merge pull request #119902 from reginayap8/reyap/wechat
Imrove WeChat Documentation with Steps
2 parents 3c66fb0 + 2a6660c commit e71c098

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

articles/active-directory-b2c/identity-provider-wechat.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,21 @@ zone_pivot_groups: b2c-policy-type
2525
## Prerequisites
2626

2727
[!INCLUDE [active-directory-b2c-customization-prerequisites](../../includes/active-directory-b2c-customization-prerequisites.md)]
28+
* Get an approved Weixin Open Platform account at [https://kf.qq.com](https://kf.qq.com/faq/161220Brem2Q161220uUjERB.html).
29+
* Get an approved application on Weixin Open Platform.
2830

2931
## Create a WeChat application
3032

31-
To enable sign-in for users with a WeChat account in Azure Active Directory B2C (Azure AD B2C), you need to create an application in [WeChat management center](https://open.weixin.qq.com/). If you don't already have a WeChat account, you can get information at [https://kf.qq.com](https://kf.qq.com/faq/161220Brem2Q161220uUjERB.html).
33+
To enable sign-in for users with a WeChat account in Azure Active Directory B2C (Azure AD B2C), you need to create an application in [WeChat management center](https://open.weixin.qq.com/). If you don't already have a Weixin Open Platform account, you can get information at [https://kf.qq.com](https://kf.qq.com/faq/161220Brem2Q161220uUjERB.html). The Weixin Open Platform account and application must be approved to link WeChat as an identity provider to your user flow.
3234

3335
### Register a WeChat application
3436

3537
1. Sign in to [https://open.weixin.qq.com/](https://open.weixin.qq.com/) with your WeChat credentials.
3638
1. Select **管理中心** (management center).
3739
1. Follow the steps to register a new application.
38-
1. For the **授权回调域** (callback URL), enter `https://your-tenant-name.b2clogin.com/your-tenant-name.onmicrosoft.com/oauth2/authresp`. If you use a [custom domain](custom-domain.md), enter `https://your-domain-name/your-tenant-name.onmicrosoft.com/oauth2/authresp`. Replace `your-tenant-name` with the name of your tenant, and `your-domain-name` with your custom domain.
39-
1. Copy the **APP ID** and **APP KEY**. You need both of them to configure the identity provider to your tenant.
40+
1. In the **Development information** section, set the "Authorization callback domain" to `your-tenant-name.b2clogin.com`.
41+
1. Ensure that the application status is "Approved".
42+
1. At the top of **Application details**, copy the **APP ID** and **APP KEY**. You need both of them to configure the identity provider to your tenant.
4043

4144
::: zone pivot="b2c-user-flow"
4245

@@ -51,12 +54,17 @@ To enable sign-in for users with a WeChat account in Azure Active Directory B2C
5154
1. For the **Client secret**, enter the APP KEY that you recorded.
5255
1. Select **Save**.
5356

57+
:::image type="content" source="media/identity-provider-azure-ad-b2c/wechat-client-configuration.png" alt-text="Screenshot that shows the Configure social identity provider window, with completed form fields for social identity provider name, WeChat client ID, and app secret." lightbox="media/identity-provider-azure-ad-b2c/wechat-client-configuration.png":::
58+
5459
## Add WeChat identity provider to a user flow
5560

5661
1. In your Azure AD B2C tenant, select **User flows**.
5762
1. Click the user flow that you want to add the WeChat identity provider.
5863
1. Under the **Social identity providers**, select **WeChat**.
5964
1. Select **Save**.
65+
66+
:::image type="content" source="media/identity-provider-azure-ad-b2c/link-wechat-identity-provider.png" alt-text="Screenshot showing WeChat as a selected identity provider in the Identity Providers section." lightbox="media/identity-provider-azure-ad-b2c/link-wechat-identity-provider.png":::
67+
6068
1. To test your policy, select **Run user flow**.
6169
1. For **Application**, select the web application named *testapp1* that you previously registered. The **Reply URL** should show `https://jwt.ms`.
6270
1. Select the **Run user flow** button.
132 KB
Loading
43.1 KB
Loading

0 commit comments

Comments
 (0)