GenAuth DocsDocuments
Concepts
User Guide
Development Integration
AgentAuth
Metadata
Development Integration
Multi-tenant (beta)
Console Documentation
Multi-tenant Console
Tenant Console
Saas Application Demo
Concepts
User Guide
Development Integration
AgentAuth
Metadata
Development Integration
Multi-tenant (beta)
Console Documentation
Multi-tenant Console
Tenant Console
Saas Application Demo
Old version
User Guide
  • Quick Start

  • Authentication

  • Access Control

  • Authorization

  • Adaptive MFA

  • User Account Management

  • User Directory Management

  • Applications

  • Become a Federation Authentication Identity Provider

  • Connect External Identity Providers (IdP)

    • Social Identity Providers

      • WeChat PC QR Code
      • WeChat PC Mini Program QR Code
      • WeChat Official Account Follow
      • WeChat Mobile
      • APP Launch WeChat Mini Program
      • Huawei
      • Huawei Mobile
      • Honor
      • Xiaomi
      • Xiaomi Mobile
      • Tencent QQ
      • Tencent QQ Mobile
      • Sina Weibo
      • Sina Weibo Mobile
      • Douyin Mobile
      • Kuaishou Mobile
      • GitHub
      • GitHub Mobile
      • Facebook
      • Facebook Mobile
      • Twitter
      • Twitter Mobile
      • Google Web
      • Google Mobile
      • Apple Mobile
      • Apple Web
      • AWS
      • Alipay
      • Slack
      • Slack Mobile
      • Gitee
      • Gitee Mobile
      • GitLab
      • GitLab Mobile
      • Baidu
      • Baidu Mobile
      • Yidun (One-click Login)
      • QingCloud
      • Instagram
      • LinkedIn
      • LinkedIn Mobile
      • Line Mobile
      • Amazon
      • Amazon Mobile
      • OPPO Mobile
    • Account Binding
  • WeChat Ecosystem Full Scenario Capabilities

  • Migrate Users to GenAuth

  • Security Settings

  • Branding

  • Automation

  • Audit Logs

  • Setting

  • FAQ

  1. User Guide
  2. /
  3. Connect External Identity Providers (IdP)
  4. /
  5. Social Identity Providers
  6. /
  7. APP Launch WeChat Mini Program

¶ APP launches WeChat Mini Program

Update time: 2025-07-23 07:34:21
Edit

¶ Scenario Introduction

  • Overview: GenAuth provides developers with a method for mobile applications to quickly launch WeChat Mini Programs and obtain user information and complete login through SDK. Through the GenAuth SDK, you can easily obtain the user identity provided by WeChat and quickly establish an account system based on mobile phone numbers.

  • Application scenario: Mobile APP

  • End user preview:

¶ Notes

  • If you have not opened a GenAuth console account, please go to GenAuth console (opens new window) to register a developer account;

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

Go to WeChat Open Platform (opens new window) 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: Associate the mini program in WeChat Open Platform

Go to WeChat Open Platform (opens new window) Admin Center->Mobile Application->Application Details->Associate Mini Program Information Page to associate the mini program.

¶ Step 3: Create a WeChat mini program in WeChat Open Platform (optional)

By default, the default mini program provided by GenAuth will be used when the APP launches the mini program login. If you need stronger brand customization capabilities, or want to connect the WeChat account of the user who logs in through the mini program by scanning the code with your other WeChat public platforms, you need to apply for your own mini program. If you belong to one of these two scenarios:

Please follow the WeChat public platform instructions to create a WeChat mini program. You need to record the application's AppID and AppSecret, which will be needed later. At the same time, you need to contact us to obtain the source code of the mini-login. For details, please consult GenAuth after-sales service staff.

¶ Step 4: Configure APP to launch the mini-program login in the GenAuth console

  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.

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

  1. Click the "APP Launches Mini Program" login mode, or click … Add to open the "APP Launches Mini Program" configuration page.

  1. On the "APP Launch Mini Program" 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 ID 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
Mini Program IDFill in if you choose to privatize the Mini Program
Mini Program SecretFill in if you choose to privatize the Mini Program
Login ModeAfter turning on "Login Only Mode", you can only log in to existing accounts and cannot create new accounts. Please choose carefully
  1. After the configuration is completed, click the "Create" or "Save" button to complete the creation.

¶ Step 5: Development access

  • Recommended development access method: SDK

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

  • Detailed access method:

  1. Refer to the SDK developer access documentation Android and iOS.
  2. On the created "APP Launch Mini Program" identity source connection details page, open and associate a mobile app created in the GenAuth console.

  1. Go to the associated mobile app and experience the APP login function.

Previous article: WeChat Mobile Next article: Huawei
  • Scenario Introduction
  • Notes
  • Step 1: Create a WeChat mobile application on WeChat Open Platform
  • Step 2: Associate the mini program in WeChat Open Platform
  • Step 3: Create a WeChat mini program in WeChat Open Platform (optional)
  • Step 4: Configure APP to launch the mini-program login in the GenAuth console
  • Step 5: Development access

User identity management

Integrated third-party login
Customized authentication process

Enterprise internal management

Single sign-on
Multi-factor authentication
Permission management

Developer

Development Documentation
GitHub (opens new window)

Company

official@genauth.ai
16th Floor, Building B, Beichen Century Center, Chaoyang District, Beijing (Total)
Room 406, 4th Floor, Block B, No. 200, Tianfu Fifth Street, High-tech Zone, Chengdu (Branch)

© Beijing Steamory Technology Co., Ltd.