Skip to content

cduvray/jwt-authorizer

Repository files navigation

jwt-authorizer

JWT authorizer Layer for Axum.

Build status Crates.io Documentation

Tonic support is temporarily removed (waiting upgrade to hyper 1 and axum 0.7 hyperium/tonic/#1584)

Features

  • JWT token verification (Bearer)
    • Algoritms: ECDSA, RSA, EdDSA, HMAC
  • JWKS endpoint support
    • Configurable refresh
    • OpenId Connect Discovery
  • Validation
    • exp, nbf, iss, aud
  • Claims extraction
    • into custom deserializable structs or into RegisteredClaims (default)
  • Claims checker
  • Tracing support (error logging)
  • tonic support

Usage

See documentation of the jwt-authorizer module or the demo-server example.

Development

Minimum supported Rust version is 1.65.

Contributing

Contributions are wellcome!

License

MIT