PSGitLab icon indicating copy to clipboard operation
PSGitLab copied to clipboard

Add OAuth2 bearer token

Open sh-hilden opened this issue 6 years ago • 2 comments

I add OAuth2 Authentication: https://docs.gitlab.com/ce/api/oauth2.html

sh-hilden avatar Oct 24 '18 09:10 sh-hilden

How does one generate the Bearer token used in the new functionality? Private Tokens can be generated via UI but I can't seem to find anything that would help you get one.

If the only way to get a bearer token is via an API call I think we need to add a function to get a bearer token.

ngetchell avatar Mar 17 '19 02:03 ngetchell

Yes you can get it via the OAuth API. See here: https://docs.gitlab.com/ee/api/oauth2.html#resource-owner-password-credentials-flow

sh-hilden avatar Apr 05 '19 12:04 sh-hilden