pub struct SsoConfig {
pub server_url: String,
pub ticket_timeout: i64,
pub allow_cross_domain: bool,
pub allowed_origins: Vec<String>,
pub sign_secret: String,
pub sign_window_secs: i64,
}Expand description
SSO configuration. SSO 配置。
Fields§
§server_url: StringSSO server base URL. SSO 服务端基础 URL。
ticket_timeout: i64Ticket timeout seconds. 票据超时秒数。
allow_cross_domain: boolWhether cross-domain origin checks are enabled. 是否启用跨域 Origin 校验。
allowed_origins: Vec<String>Allowed origins (exact match; "*" only if listed explicitly).
允许的 Origin(精确匹配;仅列表显式含 "*" 时放行全部)。
sign_secret: StringHMAC secret for HTTP SSO signing (empty disables HTTP checker path). HTTP SSO 签名 HMAC 密钥(空则禁止走 HTTP checker)。
sign_window_secs: i64Timestamp window seconds for signatures. 签名时间窗(秒)。
Implementations§
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