FIX: The organization has enabled or enforced SAML SSO

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.

FIX: The organization has enabled or enforced SAML SSO

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

FIX: To access this repository, you must re-authorize the OAuth Application

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.

FIX: The organization has enabled or enforced SAML SSO

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

FIX: To access this repository, you must re-authorize the OAuth Application

Published by

Bas Wijdenes

My name is Bas Wijdenes and I work as a PowerShell DevOps Engineer. In my spare time I write about interesting stuff that I encounter during my work.

Leave a Reply

Your email address will not be published. Required fields are marked *