pub struct SsoManager { /* private fields */ }Expand description
Aggregates optional server + client with shared config. 聚合可选服务端 + 客户端与共享配置。
Implementations§
Source§impl SsoManager
impl SsoManager
Sourcepub fn with_server(self, server: Arc<SsoServer>) -> Self
pub fn with_server(self, server: Arc<SsoServer>) -> Self
Attach server. 挂载服务端。
Sourcepub fn with_client(self, client: Arc<SsoClient>) -> Self
pub fn with_client(self, client: Arc<SsoClient>) -> Self
Attach client. 挂载客户端。
Sourcepub fn is_allowed_origin(&self, origin: &str) -> bool
pub fn is_allowed_origin(&self, origin: &str) -> bool
Exact-match origin check using config. 使用配置做精确 Origin 校验。
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SsoManager
impl !UnwindSafe for SsoManager
impl Freeze for SsoManager
impl Send for SsoManager
impl Sync for SsoManager
impl Unpin for SsoManager
impl UnsafeUnpin for SsoManager
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