Skip to content

feat: allow to provide custom client-id

  • Please check this box if this contribution uses AI-generated content as outlined in the GitLab DCO & CLA

Description

I would like to be able to use my own GitLab OAuth2.0 application, this change will allow me to set a custom OAuth2.0 client-id via additional CLI parameter called --client-id with glab config set client_id XXX --host YYY

Related Issues

Resolves:

Removes:

How has this been tested?

  1. Add OAuth2.0 application to GitLab, write down its client-id
  2. Apply suggested change
  3. Run glab config set client_id <CLIENT_ID> --host <HOSTNAME>
  4. Run glab auth login --hostname <HOSTNAME>

Screenshots (if appropriate):

N/A

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation
  • Chore (Related to CI or Packaging to platforms)
  • Test gap
Edited by Viacheslav Vasilyev

Merge request reports

Loading