Hanzo
PlatformHanzo IAMProvidersOAuth

GitLab OAuth

Add GitLab (or self-hosted GitLab) as an OAuth provider.

Use the GitLab Applications page (or https://<your-gitlab>/-/profile/applications for self-hosted) to create an OAuth application.

Create the GitLab application

  1. Click Add new application.
  2. Set Name (e.g. "Hanzo IAM"), Redirect URI, and Scopes.

:::caution Enable scopes read_user and profile. Without them, authentication can fail. :::

:::info In GitLab, Redirect URI must be Hanzo IAM’s callback URL. In Hanzo IAM, the application Redirect URL is your application’s callback URL. See Application config. :::

  1. After creating the app, copy Application ID and Secret from the app details.

Add the provider in Hanzo IAM

Create an OAuth provider, set Type to GitLab, and enter Application ID as Client ID and Secret as Client Secret.

How is this guide?

Last updated on

On this page