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

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.
- After creating the app, copy Client ID and Client Secret.

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

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