merge queue: checking main (ea8d6fb) and #3460 together#3475
Closed
mergify[bot] wants to merge 3 commits into
Closed
merge queue: checking main (ea8d6fb) and #3460 together#3475mergify[bot] wants to merge 3 commits into
mergify[bot] wants to merge 3 commits into
Conversation
Generated auth login sent a bare authorization_code grant when no client secret was configured — no client authentication and no code_verifier — which token endpoints reject. Every printed CLI with authorization-code OAuth inherited the broken CLIENT_ID-only path. When no secret is set, the emitted flow now generates a per-attempt RFC 7636 verifier, sends an S256 code_challenge on the authorize request, and exchanges with code_verifier in place of client_secret. Secret-based flows are unchanged. The loopback redirect moves from localhost to 127.0.0.1 per RFC 8252 §7.3, and the token exchange gets its own 30s client instead of the shared default. Adds a generated-output test (compiled binary, verify-env URL assertions both ways, injected -race runtime tests incl. the RFC 7636 appendix B vector) and a golden case locking the authorization-code + PKCE shape, which previously had no golden coverage. Closes #3457. Refs mvanhorn/printing-press-library#1287. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
… test assertions Token exchange now uses http.NewRequestWithContext(cmd.Context(), ...) so Ctrl+C cancels an in-flight exchange, matching the refreshAccessToken idiom in client.go.tmpl. Split the whitespace-sensitive combined assertion into independent Contains checks; mutual exclusivity stays covered by the verify-env behavioral checks. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
7 tasks
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 pull request has been checked successfully and will be merged soon. 🎉
Branch main (ea8d6fb) and #3460 are queued together for merge.
This pull request has been created by Mergify to check the mergeability of #3460.
You don't need to do anything. Mergify will close this pull request automatically when it is complete.
Required conditions of queue rule
defaultfor merge:check-success = build-and-testcheck-success = generated-testcheck-success = go-lintcheck-success = goldencheck-success = testgithub-review-approved[🛡 GitHub branch protection]require-ready-label-and-ci]:#changes-requested-reviews-by = 0#review-threads-unresolved = 0check-success = build-and-testcheck-success = generated-testcheck-success = go-lintcheck-success = goldencheck-success = pr-titlecheck-success = testlabel = ready-to-mergehead = release-please--branches--maintitle ~= ^chore\(main\): release-files ~= ^(\.github/workflows/|\.github/scripts/|scripts/|\.github/CODEOWNERS$)approved-reviews-by = mvanhornapproved-reviews-by = tmchowauthor = mvanhornauthor = tmchowlabel = queuedcheck-neutral = Greptile Reviewcheck-skipped = Greptile Reviewcheck-success = Greptile Reviewhead ~= ^mergify/merge-queue/head = release-please--branches--maintitle ~= ^chore\(main\): releasecheck-neutral = Mergify Merge Protectionscheck-skipped = Mergify Merge Protectionscheck-success = Mergify Merge ProtectionsRequired conditions to stay in the queue:
#changes-requested-reviews-by = 0#review-threads-unresolved = 0-draftbase = maincheck-success = build-and-testcheck-success = generated-testcheck-success = go-lintcheck-success = goldencheck-success = pr-titlecheck-success = testgithub-review-approved[🛡 GitHub branch protection]require-ready-label-and-ci]:#changes-requested-reviews-by = 0#review-threads-unresolved = 0check-success = build-and-testcheck-success = generated-testcheck-success = go-lintcheck-success = goldencheck-success = pr-titlecheck-success = testlabel = ready-to-mergehead = release-please--branches--maintitle ~= ^chore\(main\): release-files ~= ^(\.github/workflows/|\.github/scripts/|scripts/|\.github/CODEOWNERS$)approved-reviews-by = mvanhornapproved-reviews-by = tmchowauthor = mvanhornauthor = tmchowcheck-success = Greptile Reviewlabel = queuedcheck-neutral = Greptile Reviewcheck-skipped = Greptile Reviewhead ~= ^mergify/merge-queue/head = release-please--branches--maintitle ~= ^chore\(main\): release-files ~= ^(\.github/workflows/|\.github/scripts/|scripts/|\.github/CODEOWNERS$)approved-reviews-by = mvanhornapproved-reviews-by = tmchowauthor = mvanhornauthor = tmchowcheck-success = Greptile Reviewcheck-neutral = Greptile Reviewcheck-skipped = Greptile Reviewhead = release-please--branches--maintitle ~= ^chore\(main\): releasecheck-success = Mergify Merge Protectionscheck-neutral = Mergify Merge Protectionscheck-skipped = Mergify Merge Protections