{"id":17506560,"url":"https://github.com/chf007/egg-qywx-login","last_synced_at":"2026-03-14T01:35:44.647Z","repository":{"id":57220686,"uuid":"147762239","full_name":"chf007/egg-qywx-login","owner":"chf007","description":"企业微信扫码登陆 Egg 插件","archived":false,"fork":false,"pushed_at":"2024-02-28T06:08:21.000Z","size":6,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-17T10:05:49.890Z","etag":null,"topics":["egg","egg-plugin","egg-qywx-login","eggjs","eggplugin","qywx","qywx-login"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chf007.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-07T02:55:05.000Z","updated_at":"2024-07-02T04:29:57.000Z","dependencies_parsed_at":"2025-03-05T13:36:19.585Z","dependency_job_id":"0d6c433e-0404-4532-be2d-4e2dedc27dc8","html_url":"https://github.com/chf007/egg-qywx-login","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chf007%2Fegg-qywx-login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chf007%2Fegg-qywx-login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chf007%2Fegg-qywx-login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chf007%2Fegg-qywx-login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chf007","download_url":"https://codeload.github.com/chf007/egg-qywx-login/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249648097,"owners_count":21305779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["egg","egg-plugin","egg-qywx-login","eggjs","eggplugin","qywx","qywx-login"],"created_at":"2024-10-20T03:45:20.035Z","updated_at":"2026-03-14T01:35:39.606Z","avatar_url":"https://github.com/chf007.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# egg-qywx-login\n\n企业微信扫码登陆 Egg 插件，日前只持 Egg2.x 以上版本\n\n## 安装\n\n```\nnpm install egg-qywx-login\n```\n\n## 启用\n```\n// config/plugin.js\n\nexports['qywx-login'] = {\n  enable: true,\n  package: 'egg-qywx-login',\n};\n\n```\n\n## 配置说明\n```\n// config/config.default.js\n\nconfig['qywx-login'] = {\n    returnDomainName: 'https://admin.xxx.com', // 扫码回跳域名 必填\n    loginPath: '/login', // 登陆处理\n    logoutPath: '/logout', // 登出处理\n    loginSuccPath: '/', // 登陆成功后跳转地址\n    loginFailPath: '/login-fail.html', // 登陆失败后跳转地址，可以应用中自定义\n    noRedirectPath: '/api/', // 哪些地址不直接跳转而是将控制权交给前端\n    ignore: [ // 不需要校验登陆url名单，支持字符串，正则，回调函数(会传入ctx，返回true/false)\n      '/login-fail.html',\n      /abc/g,\n      function(ctx) {\n          return true;\n      } \n    ],\n};\n\n```\n\n## 目前支持\n\n- 基于 Cookie/Session 的扫码登陆校验\n- 登陆成功后用户信息会写入 ctx.userInfo 中\n- 暂时没有每次校验拉取用户信息，如果用户信息在企业微信中有变更，重新扫码登陆后才能更新\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchf007%2Fegg-qywx-login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchf007%2Fegg-qywx-login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchf007%2Fegg-qywx-login/lists"}