#json #access-token #jwt #oidc #validation #open-id #jwks

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

#325 in Authentication

Download history 13/week @ 2024-01-01 22/week @ 2024-01-08 2/week @ 2024-01-15 36/week @ 2024-02-12 33/week @ 2024-02-19 86/week @ 2024-02-26 348/week @ 2024-03-04 100/week @ 2024-03-11 17/week @ 2024-03-18 1/week @ 2024-03-25 131/week @ 2024-04-01 77/week @ 2024-04-08 53/week @ 2024-04-15

262 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–20MB
~307K SLoC