Module oauth_common
Expand description
Common OAuth2 utilities shared across model_providers.
Structs§
- Pkce
State - 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).