Repository navigation
test(idp-provider): test-RP example + live loop proof harness (#13409) - #13755
Merged
Merged
Conversation
Slice 3 step 3: examples/test-rp.rs, a minimal relying party that completes the full authorization-code + PKCE loop over real HTTP against a running provider (discovery, JWKS, authorize via the local door, token exchange, ID-token verification against the JWKS key, userinfo), with a deny mode for the non-allowlisted attempt. Also takes the ID token sub from the authorization code's account record in the token handler (was an unread field).
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 41 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This was referenced Nov 23, 2026
This was referenced Nov 24, 2026
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.
Slice 3, step 3 of #13409 (story #13658): the test relying party and the live loop proof.
examples/test-rp.rs— a minimal relying party that completes the full authorization-code + PKCE loop over real HTTP against a running provider: discovery → JWKS →POST /authorizethrough the devtoday local door → code redirect →POST /token→ ID-token verification against the JWKS key →GET /userinfo.RP_MODE=denyruns the non-allowlisted attempt and treats the 403 as success. It prints a one-line JSON verdict including the in-process loop latency.src/flow.rs— the ID token'ssubnow comes from the authorization code's account record (the field was previously unread; no behaviour change for the single-account registry).Live proof (laptop, against the running release binary, real Slice 2 key): all five proof-bar items pass — the evidence comment with the measured footprint/latency is on #13409. Crate tests remain 8 passed, 0 failed.
{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-23T21:11:39Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": null, "model": null, "lane_start_issues": [], "workspace_ref": null, "auth_subject": "archer", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.