Title: Hetao29 Sign-In for WeCom
Author: hetao
Published: <strong>October 28, 2026</strong>
Last modified: October 29, 2026

---

Search plugins

![](https://ps.w.org/hetao29-sign-in-for-wecom/assets/banner-772x250.png?rev=3773065)

![](https://ps.w.org/hetao29-sign-in-for-wecom/assets/icon-256x256.png?rev=3773065)

# Hetao29 Sign-In for WeCom

 By [hetao](https://profiles.wordpress.org/hetao29/)

[Download](https://downloads.wordpress.org/plugin/hetao29-sign-in-for-wecom.1.2.1.zip)

 * [Details](https://wordpress.org/plugins/hetao29-sign-in-for-wecom/#description)
 * [Reviews](https://wordpress.org/plugins/hetao29-sign-in-for-wecom/#reviews)
 *  [Installation](https://wordpress.org/plugins/hetao29-sign-in-for-wecom/#installation)
 * [Development](https://wordpress.org/plugins/hetao29-sign-in-for-wecom/#developers)

 [Support](https://wordpress.org/support/plugin/hetao29-sign-in-for-wecom/)

## Description

This plugin adds Enterprise WeChat (WeCom) sign-in to the login page. Visitors can
log in by scanning a QR code or authorizing inside the WeCom app. Administrators
can allow automatic account creation and optionally replace the standard username
and password login form.

企业微信登录插件：支持企业微信扫码登录、应用内授权登录、自动注册用户，以及按需关闭
WordPress 密码登录。

The plugin sends the authorization code to the WeCom API to retrieve the user’s 
enterprise ID. It signs in the WordPress user whose username matches that ID exactly.
With automatic registration enabled, an unmatched ID creates an account using the
ID as its username and the configured default role.

### External services

Sign-in requires WeCom. The login panel loads the WeCom JavaScript SDK from `wwcdn.
weixin.qq.com`. During sign-in, the plugin sends the Corp ID and app secret to the
WeCom token API and sends the resulting access token and authorization code to the
WeCom user info API. See the [WeCom developer documentation](https://developer.work.weixin.qq.com/)
and [privacy policy](https://work.weixin.qq.com/nl/privacy).

## Screenshots

[⌊WeCom QR code sign-in on the WordPress login page.⌉⌊WeCom QR code sign-in on the
WordPress login page.⌉[

WeCom QR code sign-in on the WordPress login page.

[⌊WeCom application settings, automatic registration, and password login options.⌉⌊
WeCom application settings, automatic registration, and password login options.⌉[

WeCom application settings, automatic registration, and password login options.

## Installation

 1. Install and activate the plugin.
 2. Open Settings > Enterprise WeChat Login and enter the WeCom Corp ID, Agent ID, 
    and app secret.
 3. Authorize your site’s domain in WeCom. The plugin generates an OAuth callback URL
    under `wp-admin/admin-post.php`.
 4. Test sign-in before enabling the option to replace the standard login form.
 5. To allow an existing user to sign in, make sure their WordPress username matches
    their WeCom User ID exactly. Automatic registration uses the configured Default
    Role of New User (subscriber by default).

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Hetao29 Sign-In for WeCom” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ hetao ](https://profiles.wordpress.org/hetao29/)

[Translate “Hetao29 Sign-In for WeCom” into your language.](https://translate.wordpress.org/projects/wp-plugins/hetao29-sign-in-for-wecom)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/hetao29-sign-in-for-wecom/),
check out the [SVN repository](https://plugins.svn.wordpress.org/hetao29-sign-in-for-wecom/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/hetao29-sign-in-for-wecom/)
by [RSS](https://plugins.trac.wordpress.org/log/hetao29-sign-in-for-wecom/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.2.1

 * Validate OAuth state with a signed, expiring cookie instead of transient storage.
 * Match WeCom User IDs directly to WordPress usernames, including automatic registration.

#### 1.2.0

 * Bind sign-in requests to a browser with one-time OAuth state and require explicit
   account mapping.
 * Restore bundled Simplified Chinese translations and the configurable role for
   automatically registered users.
 * Rename the plugin and prefix stored settings and registered identifiers.

#### 1.1.1

 * Use a plugin slug without the reserved wp prefix and improve the plugin description.

#### 1.1.0

 * Improve login integration and settings.

## Meta

 *  Version **1.2.1**
 *  Last updated **2 days ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **7.1.4**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [login](https://wordpress.org/plugins/tags/login/)[oauth](https://wordpress.org/plugins/tags/oauth/)
   [sso](https://wordpress.org/plugins/tags/sso/)[wechat](https://wordpress.org/plugins/tags/wechat/)
 *  [Advanced View](https://wordpress.org/plugins/hetao29-sign-in-for-wecom/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/hetao29-sign-in-for-wecom/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/hetao29-sign-in-for-wecom/reviews/)

## Contributors

 *   [ hetao ](https://profiles.wordpress.org/hetao29/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/hetao29-sign-in-for-wecom/)