-
-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Description
- PATs in our company instance are expired after one day by an automated process.
- Our company instance requires a daily MFA login via SSO.
- We implemented https://github.com/hickford/git-credential-oauth to gather tokens for authentication. The oauth application in GitLab is able to issue token with scope
api
as well. - This works fine with all standard
git
operations likepull
orpush
. - I tried to use the token with
lab
. However I get a 401 when setting the oauth bearer token asLAB_CORE_TOKEN
. - That is probably because
lab
does use the headerPRIVATE-TOKEN
which does only accept a GitLab PAT. - When I call the API via
curl and use the oauth token as bearer token in the
Authorization` header, this does succeed. - The oauth token has 64 characters and matches
[a-f0-9]{64}
so it should be quite easy to differentiate a PAT and this kind of token.
Metadata
Metadata
Assignees
Labels
No labels