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.
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.
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.
git config --global credential.helper manager-core
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With