pub struct SsoIdentity {
pub issuer: String,
pub tenant: String,
pub subject: String,
}Expand description
Normalized identity extracted from a (verified) OIDC token.
Fields§
§issuer: StringThe OIDC iss (issuer URL).
tenant: StringThe organization tenant, normalized across providers (Google hd,
Azure tid, Keycloak realm, …). This is what an org_did binds to.
subject: StringThe OIDC sub. Raw — the org-scoped pseudonym derivation
(blake2b(sub‖org_did‖…), RFC-001 §B.1) happens downstream; the raw
subject must not cross the wire layer.
Trait Implementations§
Source§impl Clone for SsoIdentity
impl Clone for SsoIdentity
Source§fn clone(&self) -> SsoIdentity
fn clone(&self) -> SsoIdentity
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 SsoIdentity
impl Debug for SsoIdentity
impl Eq for SsoIdentity
Source§impl PartialEq for SsoIdentity
impl PartialEq for SsoIdentity
Source§fn eq(&self, other: &SsoIdentity) -> bool
fn eq(&self, other: &SsoIdentity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SsoIdentity
Auto Trait Implementations§
impl Freeze for SsoIdentity
impl RefUnwindSafe for SsoIdentity
impl Send for SsoIdentity
impl Sync for SsoIdentity
impl Unpin for SsoIdentity
impl UnsafeUnpin for SsoIdentity
impl UnwindSafe for SsoIdentity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.