GitLab
gitlabAuthenticate with GitLab using OAuth device code flow or personal access tokens. Access projects, issues, and CI/CD.
🔐 Authentication Methods
device_code
Device Code
device_authorization: https://{instance}/oauth/device/authorize
token: https://{instance}/oauth/token
Scope: api read_user read_repository
- Go to User Settings > Personal Access Tokens
- Create a token with required scopes (api, read_user, read_repository)
- Copy the token
token
Personal Access Token
- Go to User Settings > Personal Access Tokens
- Create a token with api scope
- Copy the token
👤 Identity
Instance: e.g., gitlab.com or self-hosted instance
🌐 APIs
rest
Base URL: https://{instance}/api/v4
Auth Header: PRIVATE-TOKEN: {token}
Spec Type: openapi
Methods: device_code token
📦 Public Clients
These clients are bundled with the formula. Schlussel auto-selects the first available public client and its supported method. Just run the command below.
gitlab-cli
Client ID: dummy
Methods: device_code token
$ schlussel run gitlab🎮 API Playground
Authenticate with GitLab and try the API right here. Your token stays in your browser and is not stored.
Cmd/Ctrl + Enter to run
Output will appear here...