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.
Property (UI) | Property (JSON file) | Description |
---|---|---|
Client ID | clientId | The client identifier for your WeChat App |
Client Secret | clientSecret | Used with the Client ID to access the applicable WeChat API |
Scope | scope | An array of strings that allows access to user data |
Authorization Endpoint | authorizationEndpoint | Typically https://open.weixin.qq.com/connect/qrconnect . |
Token Endpoint | tokenEndpoint | Endpoint that receives a one-time authorization code, and returns an access token; typically https://api.wechat.com/sns/oauth2/access_token |
Refresh Token Endpoint | refreshTokenEndpoint | Endpoint that receives a one-time authorization code, and returns a refresh token; typically https://api.wechat.com/sns/oauth2/refresh_token |
User Info Endpoint | userInfoEndpoint | Endpoint that transmits scope-related fields; typically https://api.wechat.com/user/profile |
Not in the Admin UI | provider | Name of the social identity provider |
Not in the Admin UI | configClass | Configuration class for the authentication module |
Not in the Admin UI | basicAuth | Whether to use basic authentication |
Not in the Admin UI | propertyMap | Mapping between WeChat and IDM |
For information on social identity provider buttons and badges, see "Social Identity Provider Button and Badge Properties".