跳到主内容

Gitee OAuth

  1. Go to Gitee OAuth applications and create an application (or open an existing one).

Gitee 工作台 Gitee

Set name, description, homepage, and authorization callback URL. The callback URL must be Casdoor’s callback URL. In Casdoor, the application Redirect URL is your application’s callback URL. See Application config. Grant the permissions you need; enable email so Casdoor can read the user’s email.

Callback URL: In Gitee use Casdoor’s callback URL; in Casdoor use your application’s redirect URL.
  1. After creating the app, copy Client ID and Client Secret.

Gitee Client

  1. In Casdoor add an OAuth provider, set Type to Gitee, and enter Client ID and Client secret.

Gitee Provider

注意事项

Enable the email scope in the Gitee app; otherwise scope authorization may fail.

Gitee 范围