Skip to main content

Crate oauth_toolkit

Crate oauth_toolkit 

Source
Expand description

Shared OAuth2/OIDC primitives โ€” crypto, PKCE, scopes, CSRF, social login, OIDC, JWKS validation.

Provides reusable building blocks for OAuth2 authorization code flows, OIDC SSO, and social login (GitHub, Google).

Modulesยง

crypto
Cryptographic helpers for OAuth2 tokens and secrets.
csrf
CSRF state management with pluggable backends.
jwt
Lightweight JWT helpers for HS256 operations.
oidc
OIDC discovery, token exchange, and user info.
oidc_validator
JWKS-backed OIDC token validation.
pkce
RFC 7636 PKCE (Proof Key for Code Exchange) support.
redirect
Redirect URI validation for OAuth2.
scope
OAuth2 scope parsing and validation.
social
Social login providers (GitHub, Google).