Skip to main content

Gitee OAuth

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

Gitee Workbench 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.

info

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

caution

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

Gitee scope