Title: Login with GitHub
Author: Parth vataliya
Published: <strong>2025 年 1 月 31 日</strong>
Last modified: 2025 年 2 月 5 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/login-with-github.svg)

# Login with GitHub

 作者：[Parth vataliya](https://profiles.wordpress.org/parthvataliya/)

[下载](https://downloads.wordpress.org/plugin/login-with-github.1.0.3.zip)

 * [详情](https://cn.wordpress.org/plugins/login-with-github/#description)
 * [评价](https://cn.wordpress.org/plugins/login-with-github/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/login-with-github/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/login-with-github/#developers)

 [支持](https://wordpress.org/support/plugin/login-with-github/)

## 描述

Ultra minimal plugin to let your users login to WordPress applications using their
GitHub accounts. No more remembering hefty passwords!

### Initial Setup

 1. Create a project from [GitHub Developer Settings](https://github.com/settings/developers)
    if none exists.
 2. Go to **OAuth** tab, then create credential for OAuth client.
 3.  * Add `YOUR_WEBSITE_NAME` in **Application Name**
     * Add `YOUR_DOMAIN/HOME_URL` in **Homepage URL**
     * Add `YOUR_DOMAIN/wp-login.php` in **Authorized redirect URIs**
 4. This will give you **Client ID** and **Secret key**.
 5. Input these values either in `WP Admin > Settings > Login With GitHub`

### How to enable automatic user registration

You can enable user registration by
 – Enabling _Settings > Login With GitHub > 
Enable GitHub Login Registration_

**Note:** If the checkbox is ON then, it will register valid GitHub users even when
WordPress default setting, under

_Settings > General Settings > Membership > Anyone can register_ checkbox

is OFF.

## 屏幕截图

[⌊Login screen with Google option added.⌉⌊Login screen with Google option added.⌉[

Login screen with Google option added.

[⌊Plugin settings screen.⌉⌊Plugin settings screen.⌉[

Plugin settings screen.

## 安装

 1. Copy the `login-with-github` folder into your `wp-content/plugins` folder.
 2. Activate the Login With GitHub plugin via the plugins admin page.
 3. Install and activate the plugin.
 4. Go to Settings  Login With GitHub to login or register to user
 5. Add shortcode **lwg_auth_button** to login or registration file.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Login with GitHub」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Parth vataliya ](https://profiles.wordpress.org/parthvataliya/)

[帮助将「Login with GitHub」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/login-with-github)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/login-with-github/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/login-with-github/)，或通过[RSS](https://plugins.trac.wordpress.org/log/login-with-github/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/login-with-github/)。

## 更新日志

#### 1.0.3

 * Add shortcode to wp-login from.

#### 1.0.2

 * Improve performance.

#### 1.0.1

 * Sanitize setting fields.

#### 1.0.0

 * Initial Release.

## 额外信息

 *  版本 **1.0.3**
 *  最后更新：**1 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.5 或更高版本 **
 *  已测试的最高版本为 **6.7.5**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/login-with-github/)
 * 标签
 * [authentication](https://cn.wordpress.org/plugins/tags/authentication/)[github login](https://cn.wordpress.org/plugins/tags/github-login/)
   [oauth](https://cn.wordpress.org/plugins/tags/oauth/)[sign in](https://cn.wordpress.org/plugins/tags/sign-in/)
   [sso](https://cn.wordpress.org/plugins/tags/sso/)
 *  [高级视图](https://cn.wordpress.org/plugins/login-with-github/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/login-with-github/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/login-with-github/reviews/)

## 贡献者

 *   [ Parth vataliya ](https://profiles.wordpress.org/parthvataliya/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/login-with-github/)