Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/hetao29/login-integration-for-enterprise-wechat/archive/refs/heads/main.zipEnterprise WeChat (WeCom) login with QR code and in-app authorization, optional user registration, and configurable password login.
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.
The plugin sends the authorization code to the WeCom API to retrieve the user's enterprise ID. If the ID matches an existing local username, that account is signed in. With automatic registration enabled, the plugin creates an account for a new ID.
Installation
- Install and activate the plugin.
- Open Settings > Enterprise WeChat Login and enter the WeCom Corp ID, Agent ID, and app secret.
- Authorize your site's domain in WeCom. The plugin generates an OAuth callback URL under
wp-admin/admin-post.php. - Test sign-in before enabling the option to replace the standard login form.
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.
Changelog
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.