Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore: explain GIT_ASKPASS behavior in docs #12784

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

Merged
merged 7 commits into from
Mar 28, 2024
Merged

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Mar 27, 2024

  • VSCode configuration requirements

Closes #12291

- VSCode configuration requirements
@Emyrk Emyrk requested review from ericpaulsen and matifali March 27, 2024 18:40
@Emyrk Emyrk changed the title chore: docs explaining GIT_ASKPASS behavior chore: explain GIT_ASKPASS behavior in docs Mar 27, 2024
Copy link
Member

@ericpaulsen ericpaulsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

huge. thank you @Emyrk

@@ -212,8 +212,32 @@ you can require users authenticate via git prior to creating a workspace:

![Git authentication in template](../images/admin/git-auth-template.png)

The following example will require users authenticate via GitHub and auto-clone
a repo into the `~/coder` directory.
### `GIT_ASKPASS` will auto-refresh tokens
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think users will be unfamiliar with what GIT_ASKPASS is.

We should approach this from a git perspective... as the tool most users are familiar with, and explain that we use GIT_ASKPASS is a variable Git hooks into for authentication.

It's worth mentioning that coder external-auth token <id> will output the same token as the Git hook will.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will update.

@Emyrk Emyrk requested a review from kylecarbs March 27, 2024 19:06
Note: Some IDE's override the `GIT_ASKPASS` environment variable and need to be
configured.

**VSCode**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should note that this is automatically done for you. No manual user configuration is actually needed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not automatically done though. The user must manually turn off the VSCode overrides.

Does our extension do this for you?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See this issue: #12291

@Emyrk Emyrk merged commit b785e99 into main Mar 28, 2024
@Emyrk Emyrk deleted the stevenmasley/ext_auth_askpass branch March 28, 2024 18:59
@github-actions github-actions bot locked and limited conversation to collaborators Mar 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failed to authenticate to git remote (Gitea)
4 participants