#jwt #access-token #json #open-id #oidc #key-set #openid-connect

oidc-jwt-validator

Batteries included validaton of Access Tokens from an OIDC Provider

6 releases

0.2.3 Mar 7, 2024
0.2.2 Mar 6, 2024
0.2.1 Sep 21, 2023
0.2.0 Jul 5, 2023
0.1.0 Nov 27, 2022

#497 in Authentication

Download history 45/week @ 2024-07-22 217/week @ 2024-07-29 139/week @ 2024-08-05 5/week @ 2024-08-12 18/week @ 2024-08-19 88/week @ 2024-08-26 102/week @ 2024-09-02 37/week @ 2024-09-09 92/week @ 2024-09-16 159/week @ 2024-09-23 157/week @ 2024-09-30 57/week @ 2024-10-07 52/week @ 2024-10-14 65/week @ 2024-10-21 84/week @ 2024-10-28 18/week @ 2024-11-04

219 downloads per month

MIT license

30KB
593 lines

oidc-jwt-validator

oidc-jwt-validator is a highly efficient and easy-to-use library for validating JWT tokens. It's built with Rust, providing excellent performance and strong type safety. The library is designed to work with OpenID Connect (OIDC) and handles fetching and caching of JSON Web Key Sets (JWKS) from an OIDC issuer.

Features

  • JWT validation against JSON Web Key Sets
  • Automatic JWKS fetching from an OIDC issuer
  • Intelligent caching of JWKS
  • Support for cache-control directives for efficient JWKS management
  • Strong type safety with Rust
  • Fully asynchronous using Rust's async/await syntax
  • Designed for use in high load environments
  • Customizable token validation settings

Contribution

We welcome contributions to this project. Please feel free to open issues or submit pull requests.

License

This project is licensed under MIT License.

Dependencies

~6–19MB
~278K SLoC