Crate compact_jwt[][src]

Expand description

Json Web Tokens (JWT) are a popular method for creating signed transparent tokens that can be verified by clients and servers. They are enshrined in standards like OpenID Connect which causes them to be a widespread and required component of many modern web authentication system.

This is a minimal implementation of JWTs and Oidc Tokens that aims for auditability and correctness.

Re-exports

pub use crate::crypto::Jwk;
pub use crate::crypto::JwsSigner;
pub use crate::crypto::JwsValidator;
pub use crate::jwt::Jwt;
pub use crate::jwt::JwtSigned;
pub use crate::jwt::JwtUnverified;
pub use crate::oidc::OidcSigned;
pub use crate::oidc::OidcToken;
pub use crate::oidc::OidcUnverified;

Modules

Base64 data that encodes to Base64 UrlSafe, but can decode from multiple base64 implementations to account for various clients and libraries. Compatible with serde.

JWS Cryptographic Operations

Error types.

Jwt implementation

Oidc token implementation