Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't re-authorize for github #99535

Closed
wmpauli opened this issue Jun 6, 2020 · 9 comments
Closed

can't re-authorize for github #99535

wmpauli opened this issue Jun 6, 2020 · 9 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@wmpauli
Copy link

wmpauli commented Jun 6, 2020

  • VSCode Version: 1.45.1
  • OS Version: ubuntu bionic (via ssh extension from windows 10)

Steps to Reproduce:

  1. checkout repo before your org enforces SAML SSO
  2. try to push

I get this error message:
remote: The organization has enabled or enforced SAML SSO. To access
remote: this repository, you must re-authorize the OAuth Application GitHub for VSCode.
fatal: unable to access 'https://github.com/': The requested URL returned error: 403

I can still log push pull if from the command line, outside, but not the terminal in vs code.

Does this issue occur when all extensions are disabled?: Yes/No

@RMacfarlane
Copy link
Contributor

To re-authorize, you can go to your settings on GitHub -> Applications -> Authorized OAuth Apps, find "GitHub for VSCode", and choose "Revoke" from the "..." menu. If you then sign out in VSCode and sign in again, you should be prompted to re-authorized

@RMacfarlane
Copy link
Contributor

@wmpauli Did the above work, or are you still seeing this issue?

@RMacfarlane RMacfarlane added the info-needed Issue requires more information from poster label Jun 25, 2020
@github-actions
Copy link

github-actions bot commented Jul 3, 2020

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

@github-actions github-actions bot closed this as completed Jul 3, 2020
@BunnyMan1
Copy link

If you then sign out in VSCode and sign in again

How can I do this in VSCode? I don't find any option to logout from the previously authorised github account.

@jobara
Copy link

jobara commented Jul 17, 2020

I'm having the same issue. I can't find a way to re-authorize the VSCode with GitHub. @RMacfarlane can you suggest where to find this? I'm using vscode-insider on macOS and every time I try to turn on preferences sync it thinks that my account is already signed in and fails with an error message saying it is unauthorized.

sync.trafficmanager.net/v1/manifest' failed because of Unauthorized (401).

@RMacfarlane
Copy link
Contributor

@jobara Can you follow the steps in #99535 (comment)? That is, revoke the OAuth app on GitHub and then sign out and sign in again.
Screen Shot 2020-07-17 at 2 11 59 PM
Screen Shot 2020-07-17 at 2 12 20 PM

@jobara
Copy link

jobara commented Jul 18, 2020

@RMacfarlane thanks so much for the quick reply. The screenshot helped. I was completely missing the user icon, at the bottom left side, when I was looking for how to sign out. Unfortunately I'm running into another issue with preferences sync TurnedOff (UserDataSyncError) syncResource:unknown operationId:unknown: Cannot sync because syncing is turned off in the cloud. However, you've helped me get past the first issue. Thanks again.

@BunnyMan1
Copy link

I was completely missing the user icon, at the bottom left side, when I was looking for how to sign out.

Exactly what happened to me.

@github-actions github-actions bot locked and limited conversation to collaborators Aug 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

5 participants
@jobara @RMacfarlane @wmpauli @BunnyMan1 and others