volga-oauth-client
OAuth 2.1 / OpenID Connect client for the Volga Web Framework.
Built on the shared protocol types from volga-oauth-core and independent of the volga server crate - usable from any Tokio application.
Provides:
- Discovery client fetching Authorization Server Metadata (RFC 8414) and Protected Resource Metadata (RFC 9728)
- Authorization Code flow with mandatory PKCE (S256, RFC 7636), refresh tokens and resource indicators (RFC 8707)
- Token persistence and transparent refresh through the
TokenStoreabstraction - Dynamic Client Registration (RFC 7591) - the RFC 7592 management protocol is not implemented, but the
registration_access_token/registration_client_uripair is surfaced for applications that need it
Example
use Arc;
use ;
async
Feature flags
| Flag | What it enables |
|---|---|
http1 (default) |
HTTP/1.1 via hyper |
http2 |
HTTP/2 via hyper; negotiated through TLS ALPN when combined with http1, used exclusively (prior knowledge over plaintext) without it |
At least one of the two must be enabled.