pub struct AuthConfig {
pub issuer_url: String,
pub client_id: String,
pub client_secret: Option<String>,
pub redirect_uri: String,
pub scope: String,
pub cookie_name: String,
pub dev_config: DevConfig,
pub validation_options: JwtValidationOptions,
pub pkce_cookie_secret: String,
}Expand description
Authentication configuration parsed from [oidc] and [dev] TOML sections.
Fields§
§issuer_url: StringOIDC provider issuer URL
client_id: StringOAuth2 client ID
client_secret: Option<String>OAuth2 client secret (None → public client, PKCE only)
redirect_uri: StringRedirect URI for OIDC callback
scope: StringOAuth2 scopes
Token cookie name
dev_config: DevConfigDevelopment mode configuration
validation_options: JwtValidationOptionsJWT validation options
Secret for signing PKCE state cookies
Implementations§
Source§impl AuthConfig
impl AuthConfig
Sourcepub fn from_toml(config_toml: &str) -> Option<Self>
pub fn from_toml(config_toml: &str) -> Option<Self>
Parse auth config from the merged trustee TOML string.
Reads [oidc] and [dev] sections. If neither is present, returns None
(auth disabled — all endpoints open).
Sourcepub fn oidc_client_config(&self) -> OidcClientConfig
pub fn oidc_client_config(&self) -> OidcClientConfig
Build OIDC client configuration for PEP’s OidcClient.
Trait Implementations§
Source§impl Clone for AuthConfig
impl Clone for AuthConfig
Source§fn clone(&self) -> AuthConfig
fn clone(&self) -> AuthConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AuthConfig
impl RefUnwindSafe for AuthConfig
impl Send for AuthConfig
impl Sync for AuthConfig
impl Unpin for AuthConfig
impl UnsafeUnpin for AuthConfig
impl UnwindSafe for AuthConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more