Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Support for decoding with issuer-based decode keys #435

Copy link
Copy link
@mathstuf

Description

@mathstuf
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.