Hanzo
PlatformHanzo IAMProvidersOAuth

Gitee OAuth

Add Gitee as an OAuth provider.

  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 Hanzo IAM’s callback URL. In Hanzo IAM, the application Redirect URL is your application’s callback URL. See Application config. Grant the permissions you need; enable email so Hanzo IAM can read the user’s email.

:::info Callback URL: In Gitee use Hanzo IAM’s callback URL; in Hanzo IAM use your application’s redirect URL. :::

  1. After creating the app, copy Client ID and Client Secret.

Gitee Client

  1. In Hanzo IAM 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

How is this guide?

Last updated on