![]() ![]() ![]() The configuration process and mode 1 are exactly the same, just set the URL to your own server address. Message Encryption Method: Please select it according to your business needs, it is recommended to use Security Mode.Ĭlick Submit to save, and finally don't forget to enable this server configuration: ¶ Mode 2.EncodingAESKey: The message encryption key consists of 43 characters, which can be modified randomly.Token: You can set the Token in the WeChat official account to any string, it must be in English or numbers, the length is 3-32 characters, and make sure that the token you configure in the Authing Console and the required access The tokens provided by the official account are the same.If there is no Identifier, you can create the identity provider and modify it later. ![]() This mode requires some development work, but will not lose events, and is conducive to more expansion based on official account events in the future. Mode 2: Set the server address to your own server, and then forward the scan code and attention events to the Authing server endpoint.This mode is the easiest, but all the events of the WeChat official account will be pushed to the Authing server, and you will lose other events except code scanning and following. Mode 1: Set the server address as the Authing server endpoint.Since only one WeChat server configuration can be set, you need to choose two different modes according to your specific scenario: When the user scans the QR code of the official account and follows the official account, Authing can receive the user's scan code and follow events to complete the login. You can open the server configuration on the Settings and Development -> Basic Configuration page in the background of the WeChat public platform. You need to add the Generate QR Code with Parameters (opens new window) interface permission on the Settings and Development - Interface Permissions page of the WeChat Official Account Platform: ¶ Select server configuration mode You can click here (opens new window) to get the list of external IPs of the Authing server. You need to add the IP of the Authing server to the IP whitelist of the WeChat official account. You can get the AppID and AppSecret on the Settings and Development -> Basic Configuration page in the background of the WeChat public platform, which will be used in step 2 later. ¶ Step 1: Enable server configuration ¶ Get public account development information If you do not have an Authing Console account, please go to the Authing Console (opens new window) to register a developer account.Please make sure that your official account is a service account type. Restricted by the requirements of the WeChat platform, only the service account has the ability to Generating QR Code with Parameters (opens new window) API.With Authing's "Follow Official Account Login", you hardly need to develop any code, just simple configuration and it can be completed in a few minutes. Using "Follow Official Account Login" can quickly attract traffic to the official account and enhance brand stickiness. The user scans the code with the WeChat APP and follows the official account to realize the process of automatic login. Overview: "Following the official account login" refers to the process of generating a QR code of the WeChat official account on the PC website. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |