pub struct IdentityProviderConfig {
pub entity_id: String,
pub sso_url: String,
pub slo_url: Option<String>,
pub sso_binding: SamlBinding,
pub slo_binding: SamlBinding,
pub signing_certificate: String,
pub encryption_certificate: Option<String>,
pub extra: HashMap<String, String>,
}Expand description
SAML 身份提供者 (IdP) 配置
Fields§
§entity_id: String实体 ID
sso_url: StringSSO URL
slo_url: Option<String>SLO URL
sso_binding: SamlBindingSSO 绑定方式
slo_binding: SamlBindingSLO 绑定方式
signing_certificate: String签名证书
encryption_certificate: Option<String>加密证书
extra: HashMap<String, String>额外配置
Implementations§
Source§impl IdentityProviderConfig
impl IdentityProviderConfig
Sourcepub fn new(
entity_id: impl Into<String>,
sso_url: impl Into<String>,
certificate: impl Into<String>,
) -> Self
pub fn new( entity_id: impl Into<String>, sso_url: impl Into<String>, certificate: impl Into<String>, ) -> Self
创建新的 IdP 配置
Sourcepub fn with_slo_url(self, url: impl Into<String>) -> Self
pub fn with_slo_url(self, url: impl Into<String>) -> Self
设置 SLO URL
Sourcepub fn with_sso_binding(self, binding: SamlBinding) -> Self
pub fn with_sso_binding(self, binding: SamlBinding) -> Self
设置 SSO 绑定方式
Sourcepub fn with_slo_binding(self, binding: SamlBinding) -> Self
pub fn with_slo_binding(self, binding: SamlBinding) -> Self
设置 SLO 绑定方式
Sourcepub fn with_encryption_certificate(self, cert: impl Into<String>) -> Self
pub fn with_encryption_certificate(self, cert: impl Into<String>) -> Self
设置加密证书
Trait Implementations§
Source§impl Clone for IdentityProviderConfig
impl Clone for IdentityProviderConfig
Source§fn clone(&self) -> IdentityProviderConfig
fn clone(&self) -> IdentityProviderConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 IdentityProviderConfig
impl RefUnwindSafe for IdentityProviderConfig
impl Send for IdentityProviderConfig
impl Sync for IdentityProviderConfig
impl Unpin for IdentityProviderConfig
impl UnsafeUnpin for IdentityProviderConfig
impl UnwindSafe for IdentityProviderConfig
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