threads / discuss / 57154

Quick login of git

Subject: Quick login of git

## tl;dr

10 messages between Dec 27, 2021 and Dec 28, 2021.

replies: 9people: 4as markdown or json

rsbecker@nexbridge.com· Dec 27, 2021, 16:14 UTC · re: zhiyiren2009-subscription · lore

RE: Quick login of git

On December 27, 2021 11:07 AM zhiyiren2009-subscription wrote:
> Why not add a quick login method like VSCode and CLion in git? Login to
> GitHub/ GitLab with one click, without privete key.
I am not sure this has anything to do with git itself. One does not "login" to git. You might want to take this up with the GitHub/GitLab support forums. However, one-click login is being replace with MFA.
--Randall
zhiyiren2009-subscription· Dec 27, 2021, 16:24 UTC · re: rsbecker@nexbridge.com · lore

RE: Quick login of git

Did you mean Multi-Factor Authentication?
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, December 28th, 2021 at 00:14, <rsbecker@nexbridge.com> wrote:
Show 9 quoted lines
> On December 27, 2021 11:07 AM zhiyiren2009-subscription wrote:
>
> > Why not add a quick login method like VSCode and CLion in git? Login to
> >
> > GitHub/ GitLab with one click, without privete key.
>
> I am not sure this has anything to do with git itself. One does not "login" to git. You might want to take this up with the GitHub/GitLab support forums. However, one-click login is being replace with MFA.
>
> --Randall
rsbecker@nexbridge.com· Dec 27, 2021, 16:26 UTC · re: zhiyiren2009-subscription · lore

RE: Quick login of git

On December 27, 2021 11:24 AM, zhiyiren2009-subscription wrote:
Show 12 quoted lines
> On Tuesday, December 28th, 2021 at 00:14, <rsbecker@nexbridge.com>
> wrote:
> 
> > On December 27, 2021 11:07 AM zhiyiren2009-subscription wrote:
> >
> > > Why not add a quick login method like VSCode and CLion in git? Login to
> > >
> > > GitHub/ GitLab with one click, without privete key.
> >
> > I am not sure this has anything to do with git itself. One does not "login" to
> > git. You might want to take this up with the GitHub/GitLab support forums.
> > However, one-click login is being replace with MFA.
> Did you mean Multi-Factor Authentication?

Yes. And please place replies at end on this mailing list. Thanks. --Randall

zhiyiren2009-subscription· Dec 27, 2021, 19:15 UTC · re: rsbecker@nexbridge.com · lore

RE: Quick login of git

Visit the url provided by IDE in the browser, and then click "Auth" to login. Wait a moment, GitHub will return a token to the program, and you can easily login to GitHub. Popular IDEs have this login method. This configuration is much faster than the terminal, and it takes less than 1 minute. But it takes 5-10 minutes to configure by terminal for the new users.

Zhiyi Ren / Subscription Mail zhiyiren2009@protonmail.com / zhiyiren2009-subscription@protonmail.com

Sent with ProtonMail Secure Email.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, December 28th, 2021 at 00:26, <rsbecker@nexbridge.com> wrote:
Show 23 quoted lines
> On December 27, 2021 11:24 AM, zhiyiren2009-subscription wrote:
>
> > On Tuesday, December 28th, 2021 at 00:14, rsbecker@nexbridge.com
> >
> > wrote:
> >
> > > On December 27, 2021 11:07 AM zhiyiren2009-subscription wrote:
> > >
> > > > Why not add a quick login method like VSCode and CLion in git? Login to
> > > >
> > > > GitHub/ GitLab with one click, without privete key.
> > >
> > > I am not sure this has anything to do with git itself. One does not "login" to
> > >
> > > git. You might want to take this up with the GitHub/GitLab support forums.
> > >
> > > However, one-click login is being replace with MFA.
>
> > Did you mean Multi-Factor Authentication?
>
> Yes. And please place replies at end on this mailing list. Thanks.
>
> --Randall
rsbecker@nexbridge.com· Dec 27, 2021, 19:50 UTC · re: zhiyiren2009-subscription · lore

RE: Quick login of git

Show 49 quoted lines
> -----Original Message-----
> From: zhiyiren2009-subscription <zhiyiren2009-
> subscription@protonmail.com>
> Sent: December 27, 2021 2:16 PM
> To: rsbecker@nexbridge.com
> Cc: zhiyiren2009@protonmail.com; snakamoto1975@protonmail.com;
> git@vger.kernel.org
> Subject: RE: Quick login of git
> 
> Visit the url provided by IDE in the browser, and then click "Auth" to login.
> Wait a moment, GitHub will return a token to the program, and you can easily
> login to GitHub. Popular IDEs have this login method.
> This configuration is much faster than the terminal, and it takes less than 1
> minute.  But it takes 5-10 minutes to configure by terminal for the new users.
> 
> Zhiyi Ren / Subscription Mail
> zhiyiren2009@protonmail.com / zhiyiren2009-subscription@protonmail.com
> 
> Sent with ProtonMail Secure Email.
> 
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> 
> On Tuesday, December 28th, 2021 at 00:26, <rsbecker@nexbridge.com>
> wrote:
> 
> > On December 27, 2021 11:24 AM, zhiyiren2009-subscription wrote:
> >
> > > On Tuesday, December 28th, 2021 at 00:14, rsbecker@nexbridge.com
> > >
> > > wrote:
> > >
> > > > On December 27, 2021 11:07 AM zhiyiren2009-subscription wrote:
> > > >
> > > > > Why not add a quick login method like VSCode and CLion in git? Login
> to
> > > > >
> > > > > GitHub/ GitLab with one click, without privete key.
> > > >
> > > > I am not sure this has anything to do with git itself. One does not "login"
> to
> > > >
> > > > git. You might want to take this up with the GitHub/GitLab support
> forums.
> > > >
> > > > However, one-click login is being replace with MFA.
> >
> > > Did you mean Multi-Factor Authentication?
> >
> > Yes. And please place replies at end on this mailing list. Thanks.
Please use the proper place for suggesting changes.

For GitHub: https://github.community/ For GitLab: https://about.gitlab.com/support/#contact-support

zhiyiren2009-subscription· Dec 28, 2021, 07:07 UTC · re: rsbecker@nexbridge.com · lore

RE: Quick login of git

Some IDEs (such us VSCode / CLion / Idea, etc.) can login to GitHub / GitLab in browser, but git cannot, so git should change itself. And I was suggesting changes in GitHub Community but told me suggest on Git Community.

Zhiyi Ren / Subscription Mail zhiyiren2009@protonmail.com / zhiyiren2009-subscription@protonmail.com

Sent with ProtonMail Secure Email.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, December 28th, 2021 at 03:50, <rsbecker@nexbridge.com> wrote:
> -----Original Message-----
> 
> From: zhiyiren2009-subscription <zhiyiren2009-
> 
> subscription@protonmail.com>
> 
> Sent: December 27, 2021 2:16 PM
> 
> To: rsbecker@nexbridge.com
> 
> Cc: zhiyiren2009@protonmail.com; snakamoto1975@protonmail.com;
> 
> git@vger.kernel.org
> 
> Subject: RE: Quick login of git
> 
> Visit the url provided by IDE in the browser, and then click "Auth" to login.
> 
> Wait a moment, GitHub will return a token to the program, and you can easily
> 
> login to GitHub. Popular IDEs have this login method.
> 
> This configuration is much faster than the terminal, and it takes less than 1
> 
> minute. But it takes 5-10 minutes to configure by terminal for the new users.
> 
> Zhiyi Ren / Subscription Mail
> 
> zhiyiren2009@protonmail.com / zhiyiren2009-subscription@protonmail.com
> 
> Sent with ProtonMail Secure Email.
> 
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> 
> On Tuesday, December 28th, 2021 at 00:26, rsbecker@nexbridge.com
> 
> wrote:
> 
> > On December 27, 2021 11:24 AM, zhiyiren2009-subscription wrote:
> > 
> > > On Tuesday, December 28th, 2021 at 00:14, rsbecker@nexbridge.com
> > > 
> > > wrote:
> > > 
> > > > On December 27, 2021 11:07 AM zhiyiren2009-subscription wrote:
> > > > 
> > > > > Why not add a quick login method like VSCode and CLion in git? Login
> > > > > 
> > > > > to
> > 
> > > > > GitHub/ GitLab with one click, without privete key.
> > > > 
> > > > I am not sure this has anything to do with git itself. One does not "login"
> > > > 
> > > > to
> > 
> > > > git. You might want to take this up with the GitHub/GitLab support
> > > > 
> > > > forums.
> > 
> > > > However, one-click login is being replace with MFA.
> > 
> > > Did you mean Multi-Factor Authentication?
> > 
> > Yes. And please place replies at end on this mailing list. Thanks.
Please use the proper place for suggesting changes.
For GitHub: https://github.community/
For GitLab: https://about.gitlab.com/support/#contact-support
zhiyiren2009-subscription· Dec 28, 2021, 10:14 UTC · re: rsbecker@nexbridge.com · lore

RE: Quick login of git

Sorry, I made some mistakes when I typed. This is the leatest vision.

Some IDEs (such as VSCode / CLion / Idea, etc.) can login to GitHub / GitLab in browser, but git cannot, so git should change itself. And I was suggesting changes in GitHub Community but they told me to suggest on Git Community.

Zhiyi Ren / Subscription Mail zhiyiren2009@protonmail.com / zhiyiren2009-subscription@protonmail.com

Sent with ProtonMail Secure Email.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, December 28th, 2021 at 03:50, <rsbecker@nexbridge.com> wrote:
> -----Original Message-----
> 
> From: zhiyiren2009-subscription <zhiyiren2009-
> 
> subscription@protonmail.com>
> 
> Sent: December 27, 2021 2:16 PM
> 
> To: rsbecker@nexbridge.com
> 
> Cc: zhiyiren2009@protonmail.com; snakamoto1975@protonmail.com;
> 
> git@vger.kernel.org
> 
> Subject: RE: Quick login of git
> 
> Visit the url provided by IDE in the browser, and then click "Auth" to login.
> 
> Wait a moment, GitHub will return a token to the program, and you can easily
> 
> login to GitHub. Popular IDEs have this login method.
> 
> This configuration is much faster than the terminal, and it takes less than 1
> 
> minute. But it takes 5-10 minutes to configure by terminal for the new users.
> 
> Zhiyi Ren / Subscription Mail
> 
> zhiyiren2009@protonmail.com / zhiyiren2009-subscription@protonmail.com
> 
> Sent with ProtonMail Secure Email.
> 
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> 
> On Tuesday, December 28th, 2021 at 00:26, rsbecker@nexbridge.com
> 
> wrote:
> 
> > On December 27, 2021 11:24 AM, zhiyiren2009-subscription wrote:
> > 
> > > On Tuesday, December 28th, 2021 at 00:14, rsbecker@nexbridge.com
> > > 
> > > wrote:
> > > 
> > > > On December 27, 2021 11:07 AM zhiyiren2009-subscription wrote:
> > > > 
> > > > > Why not add a quick login method like VSCode and CLion in git? Login
> > > > > 
> > > > > to
> > 
> > > > > GitHub/ GitLab with one click, without privete key.
> > > > 
> > > > I am not sure this has anything to do with git itself. One does not "login"
> > > > 
> > > > to
> > 
> > > > git. You might want to take this up with the GitHub/GitLab support
> > > > 
> > > > forums.
> > 
> > > > However, one-click login is being replace with MFA.
> > 
> > > Did you mean Multi-Factor Authentication?
> > 
> > Yes. And please place replies at end on this mailing list. Thanks.
Please use the proper place for suggesting changes.
For GitHub: https://github.community/
For GitLab: https://about.gitlab.com/support/#contact-support
Erik Cervin Edin· Dec 28, 2021, 17:15 UTC · re: rsbecker@nexbridge.com · lore

Re: Quick login of git

> On December 27, 2021 11:07 AM zhiyiren2009-subscription wrote:
> Why not add a quick login method like VSCode and CLion in git? Login
> to
> GitHub/ GitLab with one click, without privete key.

I believe you're referring to this? https://code.visualstudio.com/docs/editor/github#_authenticating-with-an-existing-repository

This is using PATs, so the same authentication can be used in CLI.

I recall seeing a github login window when I was playing around with https authentication in Git for Windows. Not sure what happens if you login through that as I quit that window. I believe the default credential helper already saves username/password for https remotes.

It should be noted that many prefer to authenticate using ssh-keys but ssh isn't viable for all remotes/environments :/

brian m. carlson· Dec 28, 2021, 18:49 UTC · re: Erik Cervin Edin · lore

Re: Quick login of git

On 2021-12-28 at 17:15:26, Erik Cervin Edin wrote:
Show 16 quoted lines
> > On December 27, 2021 11:07 AM zhiyiren2009-subscription wrote:
> > Why not add a quick login method like VSCode and CLion in git? Login
> > to
> > GitHub/ GitLab with one click, without privete key.
> 
> I believe you're referring to this?
> https://code.visualstudio.com/docs/editor/github#_authenticating-with-an-existing-repository
> 
> This is using PATs,
> so the same authentication can be used in CLI.
> 
> I recall seeing a github login window when I was playing around with https
> authentication in Git for Windows.
> Not sure what happens if you login through that as I quit that window.
> I believe the default credential helper already saves username/password
> for https remotes.

Git for Windows ships with the default credential helper as Git Credential Manager Core, which will try to log in to some of the most popular services with a native token.

However, this is not a part of core Git. Folks who would like to use this credential manager are welcome to do so, in which case it will work for some services, but there's no way to automatically do this in the general case, because it isn't guaranteed that a Git server provides an automatic way to get a token. For example, my personal Git server uses only Kerberos authentication and doesn't issue tokens of any sort.

-- 
brian m. carlson (he/him or they/them)
Toronto, Ontario, CA

← back to recent threads