Skip to content

fix(jwk): parse JSON-decoded RSA oth entries - #382

Open
harrshita123 wants to merge 1 commit into
google:masterfrom
harrshita123:fix/jsonwebkey-oth-parsing
Open

fix(jwk): parse JSON-decoded RSA oth entries#382
harrshita123 wants to merge 1 commit into
google:masterfrom
harrshita123:fix/jsonwebkey-oth-parsing

Conversation

@harrshita123

Copy link
Copy Markdown
Contributor

Summary

  • parse JSON-decoded RSA oth entries without casting the full List<dynamic> to List<Map>
  • preserve the existing list, map, and required-property validation behavior
  • add regression coverage for one and multiple entries plus malformed oth values

Verification

  • dart analyze --fatal-warnings .
  • dart test -p vm test/jsonwebkey_test.dart
  • dart test -p chrome test/jsonwebkey_test.dart
  • dart test -p chrome --compiler dart2wasm test/jsonwebkey_test.dart
  • dart test -p vm (1,466 passed, 1 platform-specific test skipped)

Fixes #381

@harrshita123
harrshita123 marked this pull request as ready for review August 24, 2026 17:14
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.

bug: JsonWebKey.fromJson rejects JSON-decoded RSA oth entries

1 participant