Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authorization #28

Open
GitMalmoer opened this issue Apr 3, 2024 · 1 comment
Open

Authorization #28

GitMalmoer opened this issue Apr 3, 2024 · 1 comment

Comments

@GitMalmoer
Copy link

GitMalmoer commented Apr 3, 2024

Hello Josh nice app!
I saw your post on stackoverflow https://stackoverflow.com/questions/74308847/how-do-i-use-github-api-to-create-a-new-repository-for-a-user-that-installs-my-g
Im trying to do something similar to your app but im failing at creating repo part.
This is what im receiving after sending request to: https://api.github.com/user/repos
Im providing the valid Bearer token Bearer ghu_GHtbeUcUGaiXzVTiduDVx2wOomzBH2fQucc(this one is fake).
And this is my response:

{
    "message": "Resource not accessible by integration",
    "documentation_url": "https://docs.github.com/rest/repos/repos#create-a-repository-for-the-authenticated-user"
}

I added all permissions in https://github.com/settings/apps -> github apps -> -> permissions
If i switch to fine grain token it works just fine but on my account. The thing is i want to create repos on behalf of other user validated with my app.
Do you have any idea how to fix it?

@GitMalmoer GitMalmoer changed the title Authoristaion Authorization Apr 3, 2024
@GitMalmoer
Copy link
Author

GitMalmoer commented Apr 3, 2024

image
I see it works with OAuthApp but not with githubApp do you have any idea why is that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant