Skip to main content

Module oauth_common

Module oauth_common 

Expand description

Common OAuth2 utilities shared across model_providers.

Structs§

PkceState
PKCE state container for OAuth2 authorization code flow.

Functions§

code_challenge_for_verifier
generate_pkce_state
Generate a new PKCE state with cryptographically random values. Creates a code verifier, derives the S256 code challenge, and generates a random state parameter for CSRF protection.
parse_query_params
Parse URL query parameters into a BTreeMap. Handles URL-encoded keys and values.
random_base64url
Generate a cryptographically random base64url-encoded string.
url_decode
URL-decode a percent-encoded string.
url_encode
URL-encode a string using percent encoding (RFC 3986).