Skip to content

Validate JWT payload objects - #3587

Merged
adamtheturtle merged 1 commit into
mainfrom
validate-jwt-payload-object
Sep 9, 2026
Merged

Validate JWT payload objects#3587
adamtheturtle merged 1 commit into
mainfrom
validate-jwt-payload-object

Conversation

@adamtheturtle

@adamtheturtle adamtheturtle commented Sep 9, 2026

Copy link
Copy Markdown
Member

JWT scope parsing trusted the decoded JSON shape through Pyrefly and Ty suppressions.

This decodes the payload into an object-checked mapping before inspecting its scope, so invalid non-object payloads are rejected without casts or inline ignores.

The additional coverage exercises the public Model Target API behavior.

Validation:

  • public OAuth edge-case tests: 9 passed
  • uv run prek run --all-files --hook-stage pre-push

@adamtheturtle
adamtheturtle merged commit dd617f5 into main Sep 9, 2026
11 checks passed
@adamtheturtle
adamtheturtle deleted the validate-jwt-payload-object branch September 9, 2026 00:21
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