WeChat Social Identity Provider Configuration Details

You can set up the WeChat social identity provider through the Admin UI or in a conf/identityProvider-wechat.json file. IDM generates the identityProvider-wechat.json file when you configure and enable this social identity provider in the Admin UI. Alternatively, you can create the file manually.

The following table includes the information shown in the Admin UI WeChat Provider pop-up window, along with associated information in the identityProvider-wechat.json file.

Note

WeChat supports URLs on one of the following ports: 80 or 443. For more information on how to configure IDM to use these ports, see Host and Port Information.

WeChat Social Identity Provider Configuration Properties
Property (UI)Property (JSON file)Description
Client IDclientIdThe client identifier for your WeChat App
Client SecretclientSecretUsed with the Client ID to access the applicable WeChat API
Scopescope An array of strings that allows access to user data
Authorization EndpointauthorizationEndpointTypically https://open.weixin.qq.com/connect/qrconnect.
Token EndpointtokenEndpointEndpoint that receives a one-time authorization code, and returns an access token; typically https://api.wechat.com/sns/oauth2/access_token
Refresh Token EndpointrefreshTokenEndpointEndpoint that receives a one-time authorization code, and returns a refresh token; typically https://api.wechat.com/sns/oauth2/refresh_token
User Info EndpointuserInfoEndpointEndpoint that transmits scope-related fields; typically https://api.wechat.com/user/profile
Not in the Admin UIproviderName of the social identity provider
Not in the Admin UIconfigClassConfiguration class for the authentication module
Not in the Admin UIbasicAuthWhether to use basic authentication
Not in the Admin UIpropertyMapMapping between WeChat and IDM

For information on social identity provider buttons and badges, see "Social Identity Provider Button and Badge Properties".

Read a different version of :