{"repo":"halo-sigs/plugin-oauth2","free":true,"listed":false,"github":"https://github.com/halo-sigs/plugin-oauth2","clone":"git clone https://github.com/halo-sigs/plugin-oauth2.git","description":"Halo 2.0 的 OAuth2 第三方登录插件。","language":"Java","stars":31,"topics":["halo","halo-plugin","oauth2"],"license":"GPL-3.0","category":"auth-billing-email","readme_excerpt":"plugin-oauth2 Halo 2.0 的 OAuth2 第三方登录插件。 使用方法 1. 在 Releases 下载最新的 JAR 文件。 2. 在 Halo 后台的插件管理上传 JAR 文件进行安装。 3. 进入 Console 端的用户管理，点击右上角的 认证方式 按钮进入认证方式管理列表即可看到当前插件提供的认证方式。 4. 按照下方的配置指南配置所需的认证方式并启用。 5. 进入当前登录用户的个人资料页面，即可绑定已启用的认证方式。 配置指南 目前支持的认证方式： 服务商 文档 Halo 所需配置 Scope 回调地址 ------ ------------------------------------------------------------------------------------------------------------------------------------------------------ --------------------------- ------------ ------------------------------------- GitHub https://docs.github.com Client ID Client Secret 无需手动设置 /login/oauth2/code/github GitLab https://docs.gitlab.com Client ID Client Secret read user /login/oauth2/code/gitlab Gitee Client ID Client Secret user info /login/oauth2/code/gitee 注意事项： 1. 如果认证失败，回调地址请使用 http 尝试。 2. 是不包含 console 的。 3. 如果你用于部署的服务器无法访问 GitHub，那 GitHub 认证会失败，其它同理，请先确认连通性。请尝试配置代理。 代理配置（可选） 如果你部署的 Halo 服务器无法直接访问 GitHub、GitLab 或 Gitee 的 API，你可以配置代理。 配置路径示例： ${Halo 工作目录}/plugins/configs/plugin-oauth2.yaml 。配置示例如下所示： 开发环境 插件开发的详细文档请查阅： 修改 Halo 配置文件：","default_branch":null,"files":null,"tree":[],"storefront":"/r/halo-sigs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/halo-sigs/plugin-oauth2/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}