Personal Access Tokens

Personal Access Tokens (PATs) let scripts, CI systems, and third-party tools authenticate with GitBlixt without using your password.

Creating a Token

  1. Go to Settings → Access Tokens → New Token
  2. Give it a descriptive name (e.g. "CI pipeline", "Local dev script")
  3. Set an expiration date (required — maximum 365 days)
  4. Select the scopes you need:
    Scope Access
    api Full API access including read and write
    read_api Read-only API access
    read_repository Clone and pull from repositories
    write_repository Push to repositories
  5. Click Create token and copy it immediately — it won't be shown again

Using a Token

Tokens work anywhere a password is accepted over HTTPS:

git clone https://oauth2:[email protected]/user/repo.git

Or set it as a Git credential:

git config --global credential.helper store
# Then clone — enter "oauth2" as username and your token as password

For API access, pass it in the header:

curl -H "Authorization: Bearer YOUR_TOKEN" \
  https://git.yourdomain.com/api/v4/projects

Revoking a Token

Go to Settings → Access Tokens, find the token, and click Revoke. The token is invalidated immediately.