Skip to content

Resolving algorithms from JWK when not explicitly specified #400

Closed
@MatteoPierro

Description

@MatteoPierro

Currently, JWT.decode always expects to have the algorithms provided by the client.
When using JWKs this information can be redundant since supported algorithms can be resolved from the provided keys.

  • RSA and HMAC keys can have the alg property specifying the algorithm
  • EC keys this information can be resolved from the crv property

This kind of resolve will be triggered only if the client is not explicitly specifying the algorithms (the current behavior).

Do you see any security issues resolving the algorithm from the JWK?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions