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. WeChat PC Mini Program QR Code

¶ WeChat PC applet code scanning

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

¶ Scenario introduction

  • Overview: This is a groundbreaking design of GenAuth. After enabling scanning the small login QR code in GenAuth, you can obtain the official WeChat real-name user information. Users can complete registration or login with their real number with one-click authorization, and establish an account system based on mobile phone numbers for developers.
  • Application scenario: PC website
  • Terminal user preview image:

¶ Notes

  • If you have not opened a WeChat public platform account, please go to WeChat public platform (opens new window) to register and log in first.
  • 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 mini program on WeChat public platform (optional)

By default, the mini program scan code login will use the default mini program provided by GenAuth. If you need stronger brand customization capabilities, or want to connect the user WeChat account logged in through the mini program scan 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 go to WeChat public platform (opens new window) to create a WeChat mini program. You need to record the application's App ID and App Secret, 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 2: Configure the WeChat mini-program 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 Continue to click PC Mini Program Scan Code login mode, or click Add to open the PC Mini Program Scan Code configuration page.

2.4 Fill in the relevant field information on the PC Mini Program Scan Code configuration page.

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.
Callback URLThe service callback address after the identity source completes authentication
Mini Program LogoThe uploaded logo will be used as the logo in the center of the mini program QR code.
Whether to enable private deploymentIf you want to use your own WeChat or customize the mini login mini program page style, you can contact us to obtain the source code of the mini login mini program. If this option is enabled, you must deploy your own mini login mini program and fill in the WeChat mini program's AppID and AppSecret.
Mini Program IDThe mini program's AppID, which is filled by users who choose to privatize the mini program.
Mini Program KeyThe mini program's AppSecret, which is filled by users who choose to privatize the mini program.
Login ModeAfter enabling Login Only Mode, you can only log in to existing accounts and cannot create new accounts. Please choose carefully.
Account Identity AssociationIf Account Identity Association is not enabled, a new user is created by default when a user logs in through an identity source. After enabling Account Identity Association, users can be allowed to log in to existing accounts directly through Field Match or Ask Binding.

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: Use Hosted Login Page

  • Pros and Cons: Simple operation and maintenance, which is handled by GenAuth. Each user pool has an independent secondary domain name; if you need to embed it into your application, you need to log in using the pop-up mode, that is: after clicking the login button, a window will pop up with the login page hosted by GenAuth, or redirect the browser to the login page hosted by GenAuth.

  • Detailed access method:

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

    3.2 On the created PC Mini Program Scan Code identity source connection details page, open and associate an application created in the GenAuth console

    3.3 Click the Experience Login button in the GenAuth console application, and experience the PC Mini Program Scan Code login in the pop-up login window

Previous article: WeChat PC QR Code Next article: WeChat Official Account Follow
  • Scenario introduction
  • Notes
  • Step 1: Create a mini program on WeChat public platform (optional)
  • Step 2: Configure the WeChat mini-program in the GenAuth console
  • Step 3: 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.