rust-cfzt-validator

Crates.iorust-cfzt-validator
lib.rsrust-cfzt-validator
version0.1.0
sourcesrc
created_at2024-06-11 10:46:32.871666
updated_at2024-06-11 10:46:32.871666
descriptionA library crate for validation of Cloudflare Zero Trust JWTs
homepage
repositoryhttps://github.com/jacobneiltaylor/rust-cfzt-validator
max_upload_size
id1268076
size37,824
Jacob Neil Taylor (jacobneiltaylor)

documentation

README

rust-cfzt-validator

This crate provides the basic machinery required to build apps that can integrate with Cloudflare Zero Trust by validating and inspecting Application Token JWTs.

Specifically, this crate provides the following:

  • Parsing/retrieval of signing keys from the Cloudflare Zero Trust API
  • Lazy construction and caching of the jsonwebtoken::DecodingKey structs derived fromt the signing keys
  • Configurable validation of Application Tokens for one or multiple Zero Trust teams
  • Optional convenience struct for validated claims
  • Support for periodic refreshes of the Cloudflare Zero Trust signing keys

By design, this crate does not provide the following:

  • Machinery for retrieving the User Identity data associated with a token.
  • Opinionated patterns for integration into async runtimes
Commit count: 3

cargo fmt