# Gitee Login Plugin

**URL:** https://meta.discourse.org/t/gitee/392560
**Category:** Development
**Created:** [January 2, 2026, 5:40pm UTC](https://meta.discourse.org/t/gitee/392560 "2026-01-02T17:40:11Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![xuxiaowei-com-cn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xuxiaowei-com-cn/32/537370_2.png) [@xuxiaowei-com-cn](https://meta.discourse.org/u/xuxiaowei-com-cn)
#### Post date: [January 2, 2026, 5:40pm UTC](https://meta.discourse.org/t/gitee/392560/1 "2026-01-02T17:40:11Z")

</div>

This plugin allows users to log in to your Discourse forum using Gitee OAuth2.

## Installation

- Clone the code into the plugins directory `/var/www/discourse/plugins`

```shell
docker exec -it discourse-web-1 bash
cd /var/www/discourse/plugins
git clone https://github.com/xuxiaowei-com-cn/discourse-gitee-login.git

```

- Restart the container

```shell
docker restart discourse-web-1

```

## Configuration

1. Create a new OAuth application on Gitee:

2. Copy the `Client ID` and `Client Secret` from the Gitee application page.

3. In your Discourse Admin Panel:

 ![img-1](https://global.discourse-cdn.com/meta/original/4X/2/8/d/28d97ac67418a2418378a94da7cc0f2390da62ca.png)  
 ![img-2](https://global.discourse-cdn.com/meta/original/4X/f/3/1/f319dccbff0b591e502c0e6374b73a59fc8ff5e7.png)

## Usage

Once configured, users will see a “Log in with Gitee” button on the login page. They can click this button to authenticate with their Gitee account and log in to your forum.

---

_[View the full topic](https://meta.discourse.org/t/gitee/392560)._
