Skip to content

WeChat Mobile

Scenario Introduction

  • Overview: GenAuth provides developers with a way to quickly jump to WeChat login and obtain user information in mobile (iOS or Android) applications. WeChat account access can be completed by simply calling the GenAuth mobile SDK.
  • Application scenario: Mobile APP
  • End user preview image: Pull up the WeChat APP in the mobile application to log in;

Notes

  • If you have not opened a WeChat Open Platform account, please go to WeChat Open Platform to register a developer account;
  • If you have not opened a GenAuth console account, please go to GenAuth console to register a developer account;

Step 1: Create a WeChat mobile application on the WeChat Open Platform

Go to WeChat Open Platform to create a WeChat mobile application.

After the creation is complete, you need to record the AppID and AppSecret of the application, which will be used later.

Step 2: Configure WeChat mobile login in the GenAuth console

2.1 Please click the "Create Social Identity Source" button on the "Social Identity Source" page of the GenAuth console to enter the "Select Social Identity Source" page.

2.2 On the "Select Social Identity Source" page, click the "WeChat" card to enter the "WeChat Login Mode" page.

2.3 Click the "WeChat Mobile" login mode, or click … Add to open the "WeChat Mobile" configuration page.

2.4 On the "WeChat Mobile" configuration page, fill in the relevant field information.

FieldDescription
Unique IDa. The unique ID consists of lowercase letters, numbers, and -, and its length is less than 32 bits.
b. This is the unique identifier of this connection and cannot be modified after setting
Display nameThis name will be displayed on the button of the terminal user's login interface
AppIDAppID obtained in step 1
App secretAppSecret obtained in step 1
Login modeAfter turning on "Login only mode", you can only log in to existing accounts and cannot create new accounts. Please choose carefully

2.5 After the configuration is completed, click the "Create" or "Save" button to complete the creation.

Step 3: Development access

  • Recommended development access method: SDK

  • Pros and cons description: Simple access, only a few lines of code are required. Highest degree of customization.

  • Detailed access method:

    3.1 Please follow the WeChat Login SDK Access Document (Android) to access your Android application; please follow the WeChat Login SDK Access Document (iOS) to access your IOS application;

    3.2 Create a mobile application in the GenAuth console. For details, see: How to create an application in GenAuth

    3.3 On the created "WeChat Mobile" identity source connection details page, open and associate a mobile application created in the GenAuth console;

    3.4 Go to the associated mobile APP and experience the APP login function.

Agent infrastructure for identity, memory, and web action.