

You can define a WeChat account as a claims provider by adding it to the ClaimsProviders element in the extension file of your policy.įind the ClaimsProviders element. The endpoint provides a set of claims that are used by Azure AD B2C to verify that a specific user has authenticated. To enable users to sign in using a WeChat account, you need to define the account as a claims provider that Azure AD B2C can communicate with through an endpoint. In Secret, enter your client secret that you previously recorded.The prefix B2C_1A_ is added automatically to the name of your key. Select Policy Keys and then select Add.On the Overview page, select Identity Experience Framework.Choose All services in the top-left corner of the Azure portal, and then search for and select Azure AD B2C.You need to store the client secret that you previously recorded in your Azure AD B2C tenant. If the sign-in process is successful, your browser is redirected to, which displays the contents of the token returned by Azure AD B2C. From the sign-up or sign-in page, select WeChat to sign in with WeChat account.For Application, select the web application named testapp1 that you previously registered.To test your policy, select Run user flow.Under the Social identity providers, select WeChat.Click the user flow that you want to add the WeChat identity provider.In your Azure AD B2C tenant, select User flows.For the Client secret, enter the APP KEY that you recorded.Īdd WeChat identity provider to a user flow.For the Client ID, enter the APP ID of the WeChat application that you created earlier.Select Identity providers, then select WeChat (Preview).Choose All services in the top-left corner of the Azure portal, search for and select Azure AD B2C.On the Portal settings | Directories + subscriptions page, find your Azure AD B2C directory in the Directory name list, and then select Switch.Select the Directories + subscriptions icon in the portal toolbar. Make sure you're using the directory that contains your Azure AD B2C tenant.Sign in to the Azure portal as the global administrator of your Azure AD B2C tenant.You need both of them to configure the identity provider to your tenant. If you use a custom domain, enter Replace your-tenant-name with the name of your tenant, and your-domain-name with your custom domain. Follow the steps to register a new application.Sign in to with your WeChat credentials.If you don't already have a WeChat account, you can get information at. 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. Complete the steps in Get started with custom policies in Active Directory B2C.
