# 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:** 3
**Page:** 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.

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [January 3, 2026, 4:54am UTC](https://meta.discourse.org/t/gitee/392560/2 "2026-01-03T04:54:19Z")

</div>

> [@xuxiaowei-com-cn](#):
>
> ## Installation
> 
> - Clone the code into the plugins directory `/var/www/discourse/plugins`
> 
> ```plaintext
> 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
> 
> ```plaintext
> docker restart discourse-web-1
> 
> ```

Not sure what kind of setup you’re using, but that doesn’t look like the standard one? Perhaps you should link to [Install plugins on a self-hosted site](https://meta.discourse.org/t/install-plugins-in-discourse/19157).

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [January 3, 2026, 7:49pm UTC](https://meta.discourse.org/t/gitee/392560/3 "2026-01-03T19:49:28Z")

</div>

> [@NateDhaliwal](#):
>
> Not sure what kind of setup you’re using, but that doesn’t look like the standard one?

And if you are, the plugin will be removed at next rebuild.
