Skip to content

How to access API endpoints using an app installation token? #24502

Discussion options

You must be logged in to vote
satwikkansal:

Is there any other way a third party can create a repository in the user’s account?

@satwikkansal One approach is creating an OAuth app that requests either the public_repo scope (ability to create only public repositories) or the repo scope (ability to create either public or private repositories).

Once that person authorizes your OAuth app through the web application flow with either scope, then you can use the access token to access the API on their behalf (like creating a repository on their account). Hope this helps!

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment