Table of Contents
FIX: To access this repository, you must re-authorize the OAuth Application
During my ‘daily work’ where commits, syncs, pulls and pushes are part of daily life I suddenly got the error ‘The ‘XXX’ organization has enabled or enforced SAML SSO.‘ below!
2025-02-28 10:10:48.564 [info] remote: The 'XXX' organization has enabled or enforced SAML SSO.
remote: To access this repository, you must re-authorize the OAuth Application 'Visual Studio'.
fatal: unable to access 'https://github.com/XXX/XXX/': The requested URL returned error: 403
Unfortunately, I didn’t save the screenshot and can’t replicate it, so you’ll have to do it with the Git error.
I’m using the Git UI in Visual Studio Code & try to push to a GitHub repository. The first step should resolve your issues, but I do not know how to reauthenticate if your situation is different.
Let’s fix 403 authentication issue unable to access GitHub
GCM caches your credentials, so you’ll need to remove the old ones before you can re-authenticate:
Open Control Panel and go to Credential Manager.

Under Windows Credentials, look for anything related to GitHub and remove the credentials, or start with the Github.com credentials and try it again.

After that you should try a git pull
or git push
again and if that doesn’t work straight up, you can try to re-initialize the Git Credential Manager.
git config --global credential.helper manager-core
After doing a pull the Connect to GitHub screen popped up and I was able to log on with Sign in with your browser option.

And now I could Authorize the company I work at again to be able to open company Repositories.
