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

Support for Github authentication responses #655

Open
4 tasks
nelsonni opened this issue Feb 23, 2022 · 0 comments
Open
4 tasks

Support for Github authentication responses #655

nelsonni opened this issue Feb 23, 2022 · 0 comments
Assignees
Labels
feature Feature requests or improvements

Comments

@nelsonni
Copy link
Member

Is your feature request related to a problem? Please describe.
Depending on the type of authentication method used, any commands that interact with a remote repository host (i.e. GitHub, GItLab, etc.) will potentially return errors. This can occur due to:

  • Incorrect authentication of username/password (if using a password authentication).
  • Insufficient permissions for specified username on the target repository (e.g. attempting to push to a protected branch).
  • Expired tokens that need to be updated.
  • Authentication protocol restrictions (e.g. password authentication was removed from GitHub on August 13, 2021; see details).

Describe the solution you'd like
Provide a modal dialog that allow for updating the authentication information. This will likely require the use of getConfig and setConfig for updating the git-config files.

Describe alternatives you've considered
Failing with a error message and requiring the user to switch to the terminal for using git terminal utility would work, but be a bad usability scenario. This would also be an off-ramp from Synectic, which is not what we want.

Additional context
As an example of behavior when using the git terminal utility:

❯ git push origin -d remotes/origin/develop
Username for 'https://github.com': *********
Password for 'https://nelsonni@github.com': *********
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Authentication failed for 'https://github.com/EPICLab/ant-design.git/'
@nelsonni nelsonni added the feature Feature requests or improvements label Feb 23, 2022
@nelsonni nelsonni self-assigned this Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature requests or improvements
Projects
None yet
Development

No branches or pull requests

1 participant