gitify icon indicating copy to clipboard operation
gitify copied to clipboard

Access Token Login not working with On-Prem GitHub Enterprise Servers

Open pbsureja opened this issue 4 years ago • 4 comments

Hello,

My company uses a non standard Github Enterprise API : https://github.company.com/api/v3 instead of standard api.github.company.com which Gitify seems to refer to when connecting. Is there a way for me to modify configuration use actual api instead of the one created by Gitify ?

pbsureja avatar Nov 10 '21 20:11 pbsureja

Can confirm this at my company too. @pbsureja I think you should update your Issue title though. It's not a non-standard api. In fact it IS standard for On-Prem Hosted GitHub Enterprise servers. See: https://docs.github.com/en/[email protected]/rest/reference/oauth-authorizations

Maybe call the PR "Access Token Login not working with On-Prem GitHub Enterprise Servers"

When very closely reading the setup dialog we see "GitHub for Enterprise" which I'm guessing is a GitHub Cloud Service... image

ranma2913 avatar Nov 30 '21 16:11 ranma2913

A way which works is if you use Oauth App Method. @pbsureja let me know if this works for you.

  1. Create new OauthApp: image
  2. Doesn't really matter what you configure here, but this is what I put: image
  3. Create new ClientSecret
  4. Configure the Login with Github Enterprise image
  5. Sign In using the Oauth Sequence: image
  6. Complete the Authorize Application Dialog: image

ranma2913 avatar Nov 30 '21 16:11 ranma2913

I believe this was working previously as I have some machines which are still logged in using an Access Token, but on my main machine, I logged out and was unable to authenticate. Appears to be a regression.

I cannot use the Oauth app method for my case.

E: Maybe fixed by #524 once released?

Juice805 avatar May 03 '22 01:05 Juice805

Has not been any more traction on this? I experience the same issue. Github Enterprise is not usable

LunaticMuch avatar Feb 03 '23 18:02 LunaticMuch