pub struct AuthenticationScheme {
pub name: String,
pub description: String,
pub spec_uri: Option<String>,
pub documentation_uri: Option<String>,
pub auth_type: String,
pub primary: bool,
}
Expand description
Authentication scheme definition for service provider config.
Fields§
§name: String
Authentication scheme name
description: String
Human-readable description
spec_uri: Option<String>
URI for more information
documentation_uri: Option<String>
URI for documentation
auth_type: String
Authentication type (e.g., “oauth2”, “httpbasic”)
primary: bool
Whether this scheme is the primary authentication method
Trait Implementations§
Source§impl Clone for AuthenticationScheme
impl Clone for AuthenticationScheme
Source§fn clone(&self) -> AuthenticationScheme
fn clone(&self) -> AuthenticationScheme
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 AuthenticationScheme
impl Debug for AuthenticationScheme
Source§impl<'de> Deserialize<'de> for AuthenticationScheme
impl<'de> Deserialize<'de> for AuthenticationScheme
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AuthenticationScheme
impl PartialEq for AuthenticationScheme
Source§impl Serialize for AuthenticationScheme
impl Serialize for AuthenticationScheme
impl Eq for AuthenticationScheme
impl StructuralPartialEq for AuthenticationScheme
Auto Trait Implementations§
impl Freeze for AuthenticationScheme
impl RefUnwindSafe for AuthenticationScheme
impl Send for AuthenticationScheme
impl Sync for AuthenticationScheme
impl Unpin for AuthenticationScheme
impl UnwindSafe for AuthenticationScheme
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<T> TenantValidator for T
impl<T> TenantValidator for T
Source§fn validate_tenant_context(
&self,
expected_tenant_id: &str,
context: &RequestContext,
) -> Result<(), String>
fn validate_tenant_context( &self, expected_tenant_id: &str, context: &RequestContext, ) -> Result<(), String>
Validate that the context has the expected tenant.
Source§fn validate_single_tenant_context(
&self,
context: &RequestContext,
) -> Result<(), String>
fn validate_single_tenant_context( &self, context: &RequestContext, ) -> Result<(), String>
Validate that the context is for single-tenant operation.
Source§fn require_tenant_context(&self, context: &RequestContext) -> Result<(), String>
fn require_tenant_context(&self, context: &RequestContext) -> Result<(), String>
Extract tenant context or return error for multi-tenant operations.