Defines OIDC discovery, token, and authorization structures for OpenID Connect integration.
// Source: https://github.com/juspay/hyperswitch | 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.
use std::str::FromStr;
use common_utils::events::ApiEventMetric;
use hyperswitch_masking::Secret;
use serde::{Deserialize, Serialize};
use utoipa::ToSchema;
const RESPONSE_TYPES_SUPPORTED: &[ResponseType] = &[ResponseType::Code];
const RESPONSE_MODES_SUPPORTED: &[ResponseMode] = &[ResponseMode::Query];
const SUBJECT_TYPES_SUPPORTED: &[SubjectType] = &[SubjectType::Public];
const ID_TOKEN_SIGNING_ALGS_SUPPORTED: &[SigningAlgorithm] = &[SigningAlgorithm::Rs256];
const GRANT_TYPES_SUPPORTED: &[GrantType] = &[GrantType::AuthorizationCode];
const SCOPES_SUPPORTED: &[Scope] = &[Scope::Open
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key