{"id":392406,"date":"2026-10-28T23:57:01","date_gmt":"2026-10-28T23:57:01","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/login-integration-for-enterprise-wechat\/"},"modified":"2026-10-29T13:56:00","modified_gmt":"2026-10-29T13:56:00","slug":"hetao29-sign-in-for-wecom","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/hetao29-sign-in-for-wecom\/","author":22035673,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.2.1","stable_tag":"1.2.1","tested":"7.1.4","requires":"5.0","requires_php":"7.4","requires_plugins":null,"header_name":"Hetao29 Sign-In for WeCom","header_author":"hetao29","header_description":"Enterprise WeChat (WeCom) login with QR code and in-app authorization.","assets_banners_color":"12524d","last_updated":"2026-10-29 13:56:00","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/github.com\/hetao29\/","rating":5,"author_block_rating":0,"active_installs":0,"downloads":78,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.2.0":{"tag":"1.2.0","author":"hetao29","date":"2026-10-28 23:56:48","revision":3771873},"1.2.1":{"tag":"1.2.1","author":"hetao29","date":"2026-10-29 13:56:00","revision":3773082}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":1},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3773065,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3773065,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3773065,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3773065,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.2.0","1.2.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3773065,"resolution":"1","location":"assets","locale":"","width":1214,"height":1458},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3773065,"resolution":"2","location":"assets","locale":"","width":1742,"height":1212}},"screenshots":{"1":"WeCom QR code sign-in on the WordPress login page.","2":"WeCom application settings, automatic registration, and password login options."}},"plugin_section":[],"plugin_tags":[602,2061,2469,213694,289351],"plugin_category":[38],"plugin_contributors":[289352],"plugin_business_model":[],"class_list":["post-392406","plugin","type-plugin","status-publish","hentry","plugin_tags-login","plugin_tags-oauth","plugin_tags-sso","plugin_tags-wechat","plugin_tags-wecom","plugin_category-authentication","plugin_contributors-hetao29","plugin_committers-hetao29"],"banners":{"banner":"https:\/\/ps.w.org\/hetao29-sign-in-for-wecom\/assets\/banner-772x250.png?rev=3773065","banner_2x":"https:\/\/ps.w.org\/hetao29-sign-in-for-wecom\/assets\/banner-1544x500.png?rev=3773065","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/hetao29-sign-in-for-wecom\/assets\/icon-128x128.png?rev=3773065","icon_2x":"https:\/\/ps.w.org\/hetao29-sign-in-for-wecom\/assets\/icon-256x256.png?rev=3773065","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/hetao29-sign-in-for-wecom\/assets\/screenshot-1.png?rev=3773065","caption":"WeCom QR code sign-in on the WordPress login page."},{"src":"https:\/\/ps.w.org\/hetao29-sign-in-for-wecom\/assets\/screenshot-2.png?rev=3773065","caption":"WeCom application settings, automatic registration, and password login options."}],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<p>\u4f01\u4e1a\u5fae\u4fe1\u767b\u5f55\u63d2\u4ef6\uff1a\u652f\u6301\u4f01\u4e1a\u5fae\u4fe1\u626b\u7801\u767b\u5f55\u3001\u5e94\u7528\u5185\u6388\u6743\u767b\u5f55\u3001\u81ea\u52a8\u6ce8\u518c\u7528\u6237\uff0c\u4ee5\u53ca\u6309\u9700\u5173\u95ed WordPress \u5bc6\u7801\u767b\u5f55\u3002<\/p>\n\n<p>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.<\/p>\n\n<h3>External services<\/h3>\n\n<p>Sign-in requires WeCom. The login panel loads the WeCom JavaScript SDK from <code>wwcdn.weixin.qq.com<\/code>. 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 <a href=\"https:\/\/developer.work.weixin.qq.com\/\">WeCom developer documentation<\/a> and <a href=\"https:\/\/work.weixin.qq.com\/nl\/privacy\">privacy policy<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install and activate the plugin.<\/li>\n<li>Open Settings &gt; Enterprise WeChat Login and enter the WeCom Corp ID, Agent ID, and app secret.<\/li>\n<li>Authorize your site's domain in WeCom. The plugin generates an OAuth callback URL under <code>wp-admin\/admin-post.php<\/code>.<\/li>\n<li>Test sign-in before enabling the option to replace the standard login form.<\/li>\n<li>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).<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Validate OAuth state with a signed, expiring cookie instead of transient storage.<\/li>\n<li>Match WeCom User IDs directly to WordPress usernames, including automatic registration.<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Bind sign-in requests to a browser with one-time OAuth state and require explicit account mapping.<\/li>\n<li>Restore bundled Simplified Chinese translations and the configurable role for automatically registered users.<\/li>\n<li>Rename the plugin and prefix stored settings and registered identifiers.<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Use a plugin slug without the reserved wp prefix and improve the plugin description.<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Improve login integration and settings.<\/li>\n<\/ul>","raw_excerpt":"WeCom (\u4f01\u4e1a\u5fae\u4fe1\u767b\u5f55) for WordPress: QR code and in-app sign-in, optional registration and password login controls.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/392406","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=392406"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/hetao29"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=392406"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=392406"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=392406"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=392406"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=392406"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=392406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}