GoogleOAuthConfig (auth/config.rs)

ClawProBench · ironclaw/crates/ironclaw_reborn_webui_ingress/src/auth/config.rs · rust · Apache-2.0
auth, Auth / Identity

Defines Google and GitHub OAuth configuration structs for web UI authentication.

// Source: https://github.com/suyoumo/ClawProBench | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
//! Configuration types for the WebChat v2 OAuth login surface.
//!
//! Host composition builds a [`GoogleOAuthConfig`] from operator
//! input (env vars, TOML config) and hands it to
//! [`webui_v2_auth_router`](super::webui_v2_auth_router) along with a
//! `SessionStore` and a `UserDirectory`. The composition layer is
//! responsible for picking which providers are enabled; this crate
//! never reads env vars directly so a binary that uses a different
//! config source can still wire it.

use std::time::Duration;

use secrecy::SecretString;

/// Google OAuth (OIDC) configuration. M

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key