Static OAuth provider configurations for multiple services, including URL building and PKCE support.
// Source: https://github.com/quangdang46/openproxy | License: MIT | Copyright 2024-2026 decolua and contributors
// Provided via justclaw.it.com; keep this notice with the code.
//! OAuth provider constants — field-tested values matching 9router.
//!
//! Each provider function returns a static config that encodes the
//! authorize / token URLs, scopes, PKCE usage, extra query parameters,
//! and a refresh lead time.
use once_cell::sync::Lazy;
use url::form_urlencoded;
/// iflow extra params — client_secret resolved from env at first access.
/// The Vec is leaked once so its slice is 'static.
static IFLOW_EXTRA_PARAMS: Lazy<&'static [(&'static str, &'static str)]> = Lazy::new(|| {
Box::leak(
vec![
("client_secret", crate::oauth::secret::iflow_client_secret()),
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key