pub struct ServiceProvider {
pub config: Config,
pub idp: IdpMetadata,
/* private fields */
}Expand description
The SAML 2.0 service provider.
Fields§
§config: Config§idp: IdpMetadataImplementations§
Source§impl ServiceProvider
impl ServiceProvider
Sourcepub fn create(
config: &Map<String, Value>,
base_dir: &str,
replay: Option<MemoryReplayCache>,
) -> Result<Self, SamlError>
pub fn create( config: &Map<String, Value>, base_dir: &str, replay: Option<MemoryReplayCache>, ) -> Result<Self, SamlError>
Resolves config and loads the identity provider’s metadata.
Sourcepub fn from_file(
path: &str,
overrides: Option<&Map<String, Value>>,
replay: Option<MemoryReplayCache>,
) -> Result<Self, SamlError>
pub fn from_file( path: &str, overrides: Option<&Map<String, Value>>, replay: Option<MemoryReplayCache>, ) -> Result<Self, SamlError>
Loads saml.json. Null override values are ignored.
Sourcepub fn refresh_metadata(&mut self) -> Result<(), SamlError>
pub fn refresh_metadata(&mut self) -> Result<(), SamlError>
Reads the identity provider metadata again.
Sourcepub fn login(&self, opt: &LoginOptions) -> Result<LoginRequest, SamlError>
pub fn login(&self, opt: &LoginOptions) -> Result<LoginRequest, SamlError>
Builds a signed AuthnRequest.
Auto Trait Implementations§
impl !Freeze for ServiceProvider
impl Forget for ServiceProvider
impl RefUnwindSafe for ServiceProvider
impl Send for ServiceProvider
impl Sync for ServiceProvider
impl Unpin for ServiceProvider
impl UnsafeUnpin for ServiceProvider
impl UnwindSafe for ServiceProvider
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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