Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to re-authorize the OAuth Application 'Git Credential Manager'

Tags:

I am part of an organization that uses SSO in Github. I don't have problem to access the repository through the web, it redirects me to SSO login and that's all.

The problem started when I logged-in first to my personal repository on GitHub through Git-Bash, I did some changes and then I wanted to do changes in a repository from my organization. When I run the below command, it wrote me that I need to re-authorize the OAuth Application, but I don't understand how:

$ git push --delete origin v0.1.3 remote: The `<my_company>' organization has enabled or enforced SAML SSO. To access remote: this repository, you must re-authorize the OAuth Application `Git Credential Manager`. fatal: unable to access 'https://github.com/<my_company>/myproj.git/': The requested URL returned error: 403 

How can I re-authorize the login?

I tried to re-open Git-Bash but it wrote me the same error.

like image 515
E235 Avatar asked Mar 04 '21 13:03

E235


People also ask

How do I re authorize in git?

Reauthorize GitHub as an add-on Your user "Settings" page will appear. Click Configure add-on accounts in the left sidebar. A list of add-ons will appear. Find GitHub in the list, then click the Connect or Reauthorize Account link.


Video Answer


1 Answers

My company just enabled SSO for my Github Org overnight so was getting the same error running git pull. I fixed this with the following steps.

  1. Open Credential Manager in Windows and delete the existing credential for github.com
  2. Re-initialise the cred manager in git bash: git config --global credential.helper manager-core
  3. Re-run git pull and follow the pop-up instructions to authenticate in a browser (which happened automatically for me with SSO).

After those steps git commands worked for me again.

like image 95
pmckeown Avatar answered Sep 19 '22 15:09

pmckeown