pub struct SsoEndpoint { /* private fields */ }Expand description
Single Sign-On service endpoint.
Implementations§
Source§impl SsoEndpoint
impl SsoEndpoint
Sourcepub fn new(binding: SsoRequestBinding, url: EndpointUrl) -> SsoEndpoint
pub fn new(binding: SsoRequestBinding, url: EndpointUrl) -> SsoEndpoint
Create an SSO endpoint from an already validated URL.
Sourcepub fn redirect(url: impl Into<String>) -> Result<SsoEndpoint, SamlError>
pub fn redirect(url: impl Into<String>) -> Result<SsoEndpoint, SamlError>
Create an HTTP-Redirect SSO endpoint.
§Errors
Returns SamlError if url fails EndpointUrl::try_new
validation.
Sourcepub fn post(url: impl Into<String>) -> Result<SsoEndpoint, SamlError>
pub fn post(url: impl Into<String>) -> Result<SsoEndpoint, SamlError>
Create an HTTP-POST SSO endpoint.
§Errors
Returns SamlError if url fails EndpointUrl::try_new
validation.
Sourcepub fn simple_sign(url: impl Into<String>) -> Result<SsoEndpoint, SamlError>
pub fn simple_sign(url: impl Into<String>) -> Result<SsoEndpoint, SamlError>
Create an HTTP-POST-SimpleSign SSO endpoint.
§Errors
Returns SamlError if url fails EndpointUrl::try_new
validation.
Sourcepub fn try_from_raw(endpoint: Endpoint) -> Result<SsoEndpoint, SamlError>
pub fn try_from_raw(endpoint: Endpoint) -> Result<SsoEndpoint, SamlError>
Narrow a raw metadata endpoint into an SSO endpoint.
§Errors
Returns SamlError if the raw binding is not valid for SSO requests
or if the endpoint location fails EndpointUrl::try_new validation.
Sourcepub fn binding(&self) -> SsoRequestBinding
pub fn binding(&self) -> SsoRequestBinding
Endpoint binding.
Sourcepub fn location(&self) -> &EndpointUrl
pub fn location(&self) -> &EndpointUrl
Metadata endpoint location.
Trait Implementations§
Source§impl Clone for SsoEndpoint
impl Clone for SsoEndpoint
Source§fn clone(&self) -> SsoEndpoint
fn clone(&self) -> SsoEndpoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SsoEndpoint
impl Debug for SsoEndpoint
impl Eq for SsoEndpoint
Source§impl PartialEq for SsoEndpoint
impl PartialEq for SsoEndpoint
impl StructuralPartialEq for SsoEndpoint
Auto Trait Implementations§
impl Freeze for SsoEndpoint
impl RefUnwindSafe for SsoEndpoint
impl Send for SsoEndpoint
impl Sync for SsoEndpoint
impl Unpin for SsoEndpoint
impl UnsafeUnpin for SsoEndpoint
impl UnwindSafe for SsoEndpoint
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