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

Browser sign-in instead of Github PAT #2051

Open
JackCaster opened this issue Aug 29, 2024 · 1 comment
Open

Browser sign-in instead of Github PAT #2051

JackCaster opened this issue Aug 29, 2024 · 1 comment

Comments

@JackCaster
Copy link

JackCaster commented Aug 29, 2024

The section of the doc related to Github authentication (https://usethis.r-lib.org/articles/git-credentials.html) does not mention the possibility of using browser authentication instead of creating a PAT with git-credential-manager.

For me, the default behavior of gitcreds::gitcreds_set() is to login via a webform, and after the login, the credentials will be stored in the credential manager.

image

I never had to create a GH PAT and I think it makes things easier. The git-credential-manager is a recommended and official tool.

What do you think? Could this be add to the docs?

@jennybc
Copy link
Member

jennybc commented Aug 29, 2024

I think this is really a change (or, rather, additional approach) that would need to be embraced by gh, gitcreds, gert and credentials and then, if that happened, usethis would make any necessary adjustments to its documentation and diagnostic functions.

usethis doesn't do any credential management anymore, thank god, because we can rely on gh and gert to do this (via gitcreds and credentials, respectively). So I don't see usethis leading the charge.

Does the credential you've obtained with this flow work with all the GitHub API functionality in usethis? So, not basic git operations such as clone/push/pull, but things like creating or forking a repo or creating an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@jennybc @JackCaster and others