Expand description
Google OAuth 2.0 Authorization Code flow helpers.
This module deliberately exposes the state and PKCE verifier to the caller: the application must persist both, bound to the authenticated EME user, consume them once on callback, and validate state before exchanging a code. This crate does not own application sessions or credential persistence.
Structs§
- GoogleO
Auth Config - Credentials and callback configuration for one Google OAuth application.
- Google
Token Set - Token material returned by Google’s token endpoint.
- Google
User Info - Verified account identity returned by Google’s OpenID Connect user-info endpoint.
- Pending
Authorization - Values that the server must persist for a pending authorization attempt.
Enums§
- Calendar
Scope - Minimum EME permission requested from Google.
- GoogleO
Auth Error
Functions§
- authorization_
request - Build a Google consent URL and fresh CSRF/PKCE values.
- exchange_
code - Exchange a validated authorization code for Google tokens.
- fetch_
user_ info - Resolve the Google account associated with an access token.
- refresh_
access_ token - Refresh an access token using a previously stored refresh token.
- revoke_
token - Revoke a Google OAuth token using Google’s fixed revocation endpoint.