Skip to main content

Get credentials

1

Create an application

For gitlab.com: Go to gitlab.com/-/profile/applications.For a self-hosted instance: Go to your instance URL, then User Settings > Applications.
  • Name: your app name
  • Redirect URI: https://auth.example.com/auth/oauth/gitlab/callback
  • Scopes: check read_user and email
2

Copy credentials

After saving, copy the Application ID and Secret.

Configuration

lib/kavach.ts

Scopes

Default scopes: read_user email

User data returned

For self-hosted GitLab instances, make sure your KavachOS server can reach the GitLab API. If you are behind a VPN or firewall, the token exchange and user info calls will fail if the instance is not reachable from your server.
Last modified on April 29, 2026