Skip to content

Support for decoding with issuer-based decode keys #435

@mathstuf

Description

@mathstuf

Would it be reasonable to support decoding using a lookup_key(&str) -> Option<&DecodingKey> function? This would allow the decoding to not have to create a validation per known key with varying issuer validation.

Or perhaps this is way off target with how JWTs are meant to be used? But it feels weird to have to "guess" at which decoding key to use if it is based on the iss field.

I took a peek at the code and it would require a bit of surgery and "stuttering" of decoding to extract out just the iss field before moving onto validation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions