Skip to main content
Module oauth_common
zeroclaw
0.8.3
Module oauth_
common
Module Items
Structs
Functions
In zeroclaw::
auth
zeroclaw
::
auth
Module
oauth_
common
Copy item path
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).