profclems / glab

The GitLab CLI tool. Archived: now officially adopted by GitLab as the official CLI tool and maintained at https://gitlab.com/gitlab-org/cli. See https://github.com/profclems/glab/issues/983
https://glab.readthedocs.io/
MIT License
2.08k stars 163 forks source link

Support for OAuth tokens #953

Open KrzysztofHeller opened 2 years ago

KrzysztofHeller commented 2 years ago

Describe the feature or problem you'd like to solve Authentication using GITLAB_TOKEN environment variable works only with Personal Access Tokens. We would like to work with GLab CLI using GitLab OAuth tokens.

Propose a Solution Provide support for OAuth token with another environment variable: for example OAUTH_TOKEN. When this variable is set GLab CLI should use Bearer Authentication in requests.

clemsbot commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. We haven't had the time to address it yet, but we want to keep it open. This message is just a reminder for us to help triage issues.