Skip to content
WordPress.org
  • Showcase
  • Plugins
  • Themes
  • Hosting
  • News
    • Learn WordPress
    • Documentation
    • Education
    • Forums
    • Developers
    • Blocks
    • Patterns
    • Photos
    • Openverse ↗︎
    • WordPress.tv ↗︎
    • About WordPress
    • Make WordPress
    • Events
    • Five for the Future
    • Enterprise
    • Gutenberg ↗︎
    • Job Board ↗︎
  • Swag ↗︎
  • Get WordPress
Get WordPress
WordPress.org

Plugin Directory

Hetao29 Sign-In for WeCom

  • Submit a plugin
  • My favorites
  • Log in
  • Submit a plugin
  • My favorites
  • Log in

Hetao29 Sign-In for WeCom

By hetao
Download
  • Details
  • Reviews
  • Installation
  • Development
Support

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 and privacy policy.

Screenshots

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.

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

Translate “Hetao29 Sign-In for WeCom” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by 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 1 day 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
    loginoauthssowechat
  • Advanced View

Ratings

No reviews have been submitted yet.

Your review

See all reviews

Contributors

  • hetao

Support

Got something to say? Need help?

View support forum

  • About
  • News
  • Hosting
  • Privacy
  • Showcase
  • Themes
  • Plugins
  • Patterns
  • Learn
  • Documentation
  • Developers
  • WordPress.tv ↗
  • Get Involved
  • Events
  • Donate ↗
  • Swag ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org

The WordPress® trademark is the intellectual property of the WordPress Foundation.

  • Visit our X (formerly Twitter) account
  • Visit our Bluesky account
  • Visit our Mastodon account
  • Visit our Threads account
  • Visit our Facebook page
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our TikTok account
  • Visit our YouTube channel
  • Visit our Tumblr account
Code is Poetry