pub struct SsoProvider {Show 13 fields
pub account: String,
pub protocol: SsoProtocol,
pub display_name: String,
pub domains: Vec<String>,
pub oidc: Option<OidcSettings>,
pub saml: Option<SamlSettings>,
pub require_sso: bool,
pub require_passkey: bool,
pub console_origin: String,
pub updated: UnixMillis,
pub updated_by: String,
pub verified_domains: Vec<String>,
pub jit: String,
}Expand description
An account’s identity provider, as its admin configured it. Keyed by the account.
Fields§
§account: StringThe account (its principal id and namespace).
protocol: SsoProtocolOIDC or SAML.
display_name: String“Sign in with <display_name>”.
domains: Vec<String>Email domains that lead the login page to this account (lowercase, unique on the server: one domain, one company).
oidc: Option<OidcSettings>Set when protocol is OIDC.
saml: Option<SamlSettings>Set when protocol is SAML.
require_sso: boolThe account’s EMPLOYEES log in through the IdP only: a passkey alone is refused for them. The account admin is not an employee and keeps the passkey (the break-glass).
require_passkey: boolAfter the IdP, a passkey of the same person (registered on the first login when there is none yet).
console_origin: StringThe console the redirect URI and the SAML ACS hang off
(https://gunnar.example), as the admin’s console named it.
updated: UnixMillisWhen it was last configured.
updated_by: StringWho configured it last.
verified_domains: Vec<String>The domains whose DNS proof was read (A34-5): only these lead a sign-in
here, count for a claim or a JIT employee, and are held against other
accounts. Written only when set, as idp_ca.
jit: StringWho may become a new employee just in time (A34-25): open (empty),
domains or off (nornir_identity_sso::rules::JitPolicy).
Implementations§
Source§impl SsoProvider
impl SsoProvider
Sourcepub fn redirect_uri(&self) -> String
pub fn redirect_uri(&self) -> String
The OIDC redirect URI the admin registers at the IdP.
Sourcepub fn sp_entity_id(&self) -> String
pub fn sp_entity_id(&self) -> String
The SAML SP entity id (the audience).
Trait Implementations§
Source§impl Clone for SsoProvider
impl Clone for SsoProvider
Source§impl Debug for SsoProvider
impl Debug for SsoProvider
Source§impl<'de> Deserialize<'de> for SsoProvider
impl<'de> Deserialize<'de> for SsoProvider
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for SsoProvider
Source§impl PartialEq for SsoProvider
impl PartialEq for SsoProvider
Source§impl Serialize for SsoProvider
impl Serialize for SsoProvider
impl StructuralPartialEq for SsoProvider
Auto Trait Implementations§
impl Freeze for SsoProvider
impl RefUnwindSafe for SsoProvider
impl Send for SsoProvider
impl Sync for SsoProvider
impl Unpin for SsoProvider
impl UnsafeUnpin for SsoProvider
impl UnwindSafe for SsoProvider
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.