pub struct SsoConfig {
pub provider: SsoProvider,
pub issuer: String,
pub client_id: String,
pub client_secret: Option<String>,
pub redirect_uri: String,
pub scopes: Vec<String>,
pub identity_claim: String,
pub groups_claim: String,
pub required: bool,
}Expand description
SSO configuration in [sso] config section.
Fields§
§provider: SsoProviderSSO provider type
issuer: StringOIDC issuer URL (e.g. “https://myorg.okta.com”, “https://accounts.google.com”)
client_id: StringOIDC client ID
client_secret: Option<String>OIDC client secret (optional, for confidential clients)
redirect_uri: StringRedirect URI for the device/local auth flow
scopes: Vec<String>OIDC scopes to request
identity_claim: StringClaim to use as the identity (default: “email”)
groups_claim: StringClaim to use for group/team membership (default: “groups”)
required: boolWhether SSO is required (if false, falls back to local identity)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SsoConfig
impl<'de> Deserialize<'de> for SsoConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SsoConfig
impl RefUnwindSafe for SsoConfig
impl Send for SsoConfig
impl Sync for SsoConfig
impl Unpin for SsoConfig
impl UnsafeUnpin for SsoConfig
impl UnwindSafe for SsoConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<D> DeserializeWith<JsonFormat> for Dwhere
D: DeserializeOwned,
impl<D> DeserializeWith<JsonFormat> for Dwhere
D: DeserializeOwned,
Source§fn deserialize_with(body: ResponseBody) -> Result<D, Error>
fn deserialize_with(body: ResponseBody) -> Result<D, Error>
Deserialize the response body using the specified format. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.