Skip to content

How can I authenticate as an App? #5081

Answered by mislav
justinmchase asked this question in Q&A
Discussion options

You must be logged in to vote

No, GitHub CLI only accepts access tokens as means of authentication. You can use your App to generate an access token on behalf of a user, but you will have to do so manually, as GitHub CLI can't help with that. #5095 (comment)

Alternatively, if you use gh auth login to authenticate GitHub CLI, it will use our own OAuth app for that. However, that will completely side-step your own App.

Replies: 4 comments 10 replies

Comment options

You must be logged in to vote
6 replies
@justinmchase
Comment options

@mislav
Comment options

@justinmchase
Comment options

@justinmchase
Comment options

@patricioperezv
Comment options

Answer selected by justinmchase
Comment options

You must be logged in to vote
2 replies
@justinmchase
Comment options

@ajschmidt8
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@justinmchase
Comment options

@ajschmidt8
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants