pub enum SessionAuthMethod {
Anonymous,
StaticBearer {
principal: String,
token_fingerprint: String,
},
OAuthBearer {
principal: Option<String>,
issuer: Option<String>,
subject: Option<String>,
audience: Option<String>,
scopes: Vec<String>,
federated_claims: OAuthBearerFederatedClaims,
enterprise_identity: Option<EnterpriseIdentityContext>,
token_fingerprint: Option<String>,
},
}Expand description
Authentication method used to admit a session at the transport layer.
This is intentionally separate from Chio capability authorization. A session may be transport-authenticated and still be denied by capability or guard checks later during operation evaluation.
Variants§
Implementations§
Source§impl SessionAuthMethod
impl SessionAuthMethod
pub fn token_fingerprint(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for SessionAuthMethod
impl Clone for SessionAuthMethod
Source§fn clone(&self) -> SessionAuthMethod
fn clone(&self) -> SessionAuthMethod
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 moreSource§impl Debug for SessionAuthMethod
impl Debug for SessionAuthMethod
Source§impl<'de> Deserialize<'de> for SessionAuthMethod
impl<'de> Deserialize<'de> for SessionAuthMethod
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SessionAuthMethod, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SessionAuthMethod, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SessionAuthMethod
impl PartialEq for SessionAuthMethod
Source§impl Serialize for SessionAuthMethod
impl Serialize for SessionAuthMethod
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for SessionAuthMethod
impl StructuralPartialEq for SessionAuthMethod
Auto Trait Implementations§
impl Freeze for SessionAuthMethod
impl RefUnwindSafe for SessionAuthMethod
impl Send for SessionAuthMethod
impl Sync for SessionAuthMethod
impl Unpin for SessionAuthMethod
impl UnsafeUnpin for SessionAuthMethod
impl UnwindSafe for SessionAuthMethod
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