pub struct OidcConfig {Show 13 fields
pub discovery_url: Option<String>,
pub client_id: String,
pub redirect_url: String,
pub auth_url_override: Option<String>,
pub token_url_override: Option<String>,
pub par_url_override: Option<String>,
pub internal_url_tx: Arc<Mutex<Option<Sender<String>>>>,
pub internal_callback_tx: Arc<Mutex<Option<Sender<SocketAddr>>>>,
pub template_dir: Option<PathBuf>,
pub timeouts: Timeouts,
pub allow_insecure_http: bool,
pub expected_issuer: Option<String>,
pub request_offline_access: bool,
}Expand description
Configuration for the OIDC provider and local callback server.
Fields§
§discovery_url: Option<String>URL for OIDC discovery (.well-known/openid-configuration).
client_id: StringOIDC Client ID.
redirect_url: StringURL for the OAuth2 callback (must match provider configuration).
auth_url_override: Option<String>Optional override for the authorization endpoint.
token_url_override: Option<String>Optional override for the token endpoint.
par_url_override: Option<String>Optional override for the PAR endpoint.
internal_url_tx: Arc<Mutex<Option<Sender<String>>>>Internal channel to communicate the auth URL (used for automation/tests).
internal_callback_tx: Arc<Mutex<Option<Sender<SocketAddr>>>>Internal channel to communicate the callback server address (used for automation/tests).
template_dir: Option<PathBuf>Directory containing custom templates for success/failure pages.
timeouts: TimeoutsTimeouts and retry delays used by the auth flow and the SSE listener.
allow_insecure_http: boolAccept plain-HTTP authorization server endpoints on non-loopback hosts.
expected_issuer: Option<String>The issuer the (pre-registered) client belongs to. Discovery must find exactly this authorization server.
request_offline_access: boolAsk for offline_access when the authorization server offers it.
Off by default: providers list it even when the client may not use it
(Keycloak then fails the code exchange with not_allowed).
Trait Implementations§
Source§impl Clone for OidcConfig
impl Clone for OidcConfig
Source§fn clone(&self) -> OidcConfig
fn clone(&self) -> OidcConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more