Repository navigation
Make Git authentication errors provider-neutral and actionable - #102
Open
alanagoyal wants to merge 2 commits into
Open
alanagoyal wants to merge 2 commits into
alanagoyal wants to merge 2 commits into
Conversation
alanagoyal
force-pushed
the
fix/auth-error-help
branch
from
October 1, 2026 15:53
8eec58d to
f3bad4f
Compare
Contributor
|
Good catch, main really does tell everyone they're behind Google IAP. One thing: |
Author
|
good points, thank you! removed the unreachable fallback and unused helper, and added a test using a valid walgit access token for an email outside the allowlist to check the refusal message and provider label. |
nibzard
added a commit
to nibzard/walgit
that referenced
this pull request
Oct 15, 2026
…-neutral and actionable Co-Authored-By: Claude Code <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
this pr makes git authentication errors provider-neutral and gives better user guidance based on the specific failure.
before: authentication help always named “Google Identity-Aware Proxy,” regardless of the server’s configuration. permission denials and verifier outages also included full authentication setup instructions, suggesting users should reconfigure credentials even when that wouldn’t resolve the problem.
after:
for example, a read-only user attempting to push would now see:
the provider name is display-only. authentication and authorization rules are unchanged, and invalid or expired credentials still return HTTP 401 so git can discard stale credentials and request replacements.
validation: 40 passing end-to-end tests, including provider labels, permission-denied guidance, verifier outages, and credential-refresh behavior. clippy and formatting checks pass.