Installing or authenticating to github app

Hey!

I am trying to replace my OAuth app with a Github app.

The problem I’m having is this:

On first installation I have no problem using

https://github.com/apps/MY_APP/installations/new

But on the second time it just takes the user to the configuration and does not redirect back to the app.

I tried to find an API to install if not installed or redirect to oauth if installed but I can’t find any.

Thank you

2 Likes

Hey Dan, if I understand correctly, your saying that after installation, the user can no longer access the URL: “https://github.com/apps/MY_APP/installations/new”? What is the workflow here? Can you point them back to the URL of the app on the market place or is that not the intended workflow? 

For migrations from Oauth apps the workflow must happen on-site since you need the access_token there.

It’s possible to get only the access_token with the following method:
https://github.com/login/oauth/authorize?client_id=${clientId}
But it doesn’t create a Github app installation.