How to Enable WeChat Login for External Portals (Platform Edition)
-
Log in to WeChat Open Platform: https://open.weixin.qq.com/ (register and complete qualification verification if you don't have an account)
-
Go to Management Center > Third-Party Platform, click Create Third-Party Platform, and fill in the information step by step as shown below.

-
After submitting the information, continue to complete the profile.

-
Under Development Configuration, add the required Official Account permissions as shown below.

-
Edit the development profile and fill in the message and event reception URLs.


Example:
http://hap.domain.com/tpuser/app/authorize,http://hap.domain.com/tpuser/app/callback/$APPID$ -
Download the verification file and upload it to the proxy server. Verify it is accessible at
{HAP domain}/xxxxxx.txt.
-
Continue editing the development profile and fill in other information.

-
Generate the AppSecret as shown below.

-
Provide the
AppID,AppSecret,Message Verification Token, andMessage Encryption Keyfrom the above steps to the HAP integration team. Once HAP configuration is complete, go to the platform edition Organization Management > WeChat Official Account to bind the account. You can first test authorization using the Service Account filled in Step 6 above. After testing passes, submit for review to publish to all users. Once the review and publication are approved, other Service Accounts can also authorize.