Skip to content

Improve PKCE from_h docs and string-key test#101

Merged
simonx1 merged 1 commit intomainfrom
fix/pkce-review-tweaks
Feb 26, 2026
Merged

Improve PKCE from_h docs and string-key test#101
simonx1 merged 1 commit intomainfrom
fix/pkce-review-tweaks

Conversation

@simonx1
Copy link
Owner

@simonx1 simonx1 commented Feb 26, 2026

Summary

  • Add @note documentation to PKCE.from_h clarifying that code_challenge_method is optional (defaults to S256) and that code_challenge is not re-validated against code_verifier
  • Split the round-trip test into separate symbol-key and string-key cases so both code paths in from_h are explicitly exercised

Follow-up to #100.

Test plan

  • bundle exec rspec spec/lib/mcp_client/auth_spec.rb — 17 examples, 0 failures

🤖 Generated with Claude Code

Follow-up to #100: document that code_challenge_method is optional
and code_challenge is not re-validated in from_h, and add a dedicated
test for string-key round-trips.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@simonx1 simonx1 merged commit 40a38db into main Feb 26, 2026
3 checks passed
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

Successfully merging this pull request may close these issues.

1 participant