Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 2

Can Github App Query Private Repos from Client?

Solved! Go to Solution.

So far, what I understand is that I'm supposed to obtain an installation token for a user and perform server to server requests using that. But when I try to use that token from the client, I get 

HttpError: Resource not accessible by integration

When I use an OAuth token, I seem to only get public repos/branches. Is there any way to get private repos/branches from a browser?

1 Reply
Solution
Ground Controller Lvl 1
Message 2 of 2

Re: Can Github App Query Private Repos from Client?

Figured it out: I could get the private repos with the oauth token as shown in https://developer.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-... I just has to up the per_page to 100 (the default is 30 in the JS REST API).