Skip to content

Conversation

cleder
Copy link
Contributor

@cleder cleder commented Aug 30, 2025

Document the sub and jti claims.
The sub claim is referenced in the documentation, but was not documented as a registered claim name.
The jti claim is useful to document to prevent replay attacks.
Now all registered claim names are documented for completeness.

@cleder cleder changed the title Document claims sub and jti doc: Document claims sub and jti Aug 30, 2025
if not isinstance(key, (str, bytes)):
self.check_crypto_key_type(key)
return cast("AllowedOKPKeys", key)
return key
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it would be nice to have some tests to verify this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😕 This change is to make mypy pass. Before it did not pass, now it passes.
I am not sure what you are suggesting. Add mypy to the CI?

@auvipy auvipy merged commit 93f187f into jpadilla:master Sep 1, 2025
23 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.

2 participants