pub struct ServiceProvider {
pub entity_id: Url,
pub private_key: PKey<Private>,
pub certificate: X509,
pub assert_login: Url,
pub assert_logout: Url,
pub relay_state: Option<String>,
pub name_id_format: Option<String>,
pub authn_context: Option<RequestedAuthnContext>,
}Fields§
§entity_id: Url§private_key: PKey<Private>§certificate: X509§assert_login: Url§assert_logout: Url§relay_state: Option<String>§name_id_format: Option<String>§authn_context: Option<RequestedAuthnContext>Implementations§
Source§impl ServiceProvider
impl ServiceProvider
pub fn authn_redirect(&self, idp: &IdentityProvider) -> Result<Url>
Source§impl ServiceProvider
impl ServiceProvider
pub fn logout_redirect( &self, idp: &IdentityProvider, name_id: String, session_index: String, ) -> Result<Url>
Source§impl ServiceProvider
impl ServiceProvider
pub fn new( entity_id: Url, private_key: PKey<Private>, certificate: X509, assert_login: Url, assert_logout: Url, ) -> Self
pub fn new_from_files( entity_id: Url, private_key_path: &Path, certificate_path: &Path, assert_login: Url, assert_logout: Url, ) -> Result<Self>
pub fn with_relay_state(self, relay_state: String) -> Self
pub fn with_name_id_format(self, name_id_format: String) -> Self
pub fn with_auth_context(self, auth_context: RequestedAuthnContext) -> Self
Trait Implementations§
Source§impl Clone for ServiceProvider
impl Clone for ServiceProvider
Source§fn clone(&self) -> ServiceProvider
fn clone(&self) -> ServiceProvider
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 ServiceProvider
impl RefUnwindSafe for ServiceProvider
impl Send for ServiceProvider
impl Sync for ServiceProvider
impl Unpin for ServiceProvider
impl UnwindSafe for ServiceProvider
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