pub struct BackendOidcModeRuntimeConfig<MC>where
MC: PendingAuthStateMetadataRedemptionConfig,{
pub refresh_material_protection: RefreshMaterialProtection,
pub metadata_delivery: MetadataDelivery<MC>,
pub post_auth_redirect: PostAuthRedirectPolicy,
}Expand description
Configuration for the unified backend-oidc runtime.
Each capability axis is a structured enum that carries its associated
configuration. This eliminates scattered sibling fields and lets the type
system enforce invariants (e.g. Sealed always has a master_key).
refresh_material_protection: Sealed { master_key } | Passthrough
metadata_delivery: Redemption { config } | None
post_auth_redirect: Resolved { config } | CallerValidatedNote: token_propagation has been moved to
AccessTokenSubstrateConfig
as a substrate-level capability axis.
Fields§
§refresh_material_protection: RefreshMaterialProtection§metadata_delivery: MetadataDelivery<MC>§post_auth_redirect: PostAuthRedirectPolicyImplementations§
Source§impl<MC> BackendOidcModeRuntimeConfig<MC>where
MC: PendingAuthStateMetadataRedemptionConfig,
impl<MC> BackendOidcModeRuntimeConfig<MC>where
MC: PendingAuthStateMetadataRedemptionConfig,
Sourcepub fn validate(&self) -> BackendOidcModeRuntimeResult<()>
pub fn validate(&self) -> BackendOidcModeRuntimeResult<()>
Validate the configuration without constructing the runtime.
Most invariants are enforced by the structured enum types. This method validates things the type system cannot (e.g. redirect URI format).
Trait Implementations§
Source§impl<MC> Clone for BackendOidcModeRuntimeConfig<MC>where
MC: PendingAuthStateMetadataRedemptionConfig + Clone,
impl<MC> Clone for BackendOidcModeRuntimeConfig<MC>where
MC: PendingAuthStateMetadataRedemptionConfig + Clone,
Source§fn clone(&self) -> BackendOidcModeRuntimeConfig<MC>
fn clone(&self) -> BackendOidcModeRuntimeConfig<MC>
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<MC> Debug for BackendOidcModeRuntimeConfig<MC>where
MC: PendingAuthStateMetadataRedemptionConfig + Debug,
impl<MC> Debug for BackendOidcModeRuntimeConfig<MC>where
MC: PendingAuthStateMetadataRedemptionConfig + Debug,
Source§impl<MC> Default for BackendOidcModeRuntimeConfig<MC>where
MC: PendingAuthStateMetadataRedemptionConfig,
impl<MC> Default for BackendOidcModeRuntimeConfig<MC>where
MC: PendingAuthStateMetadataRedemptionConfig,
Source§impl<'de, MC> Deserialize<'de> for BackendOidcModeRuntimeConfig<MC>where
MC: PendingAuthStateMetadataRedemptionConfig + Default,
impl<'de, MC> Deserialize<'de> for BackendOidcModeRuntimeConfig<MC>where
MC: PendingAuthStateMetadataRedemptionConfig + Default,
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
Auto Trait Implementations§
impl<MC> Freeze for BackendOidcModeRuntimeConfig<MC>where
MC: Freeze,
impl<MC> RefUnwindSafe for BackendOidcModeRuntimeConfig<MC>where
MC: RefUnwindSafe,
impl<MC> Send for BackendOidcModeRuntimeConfig<MC>where
MC: Send,
impl<MC> Sync for BackendOidcModeRuntimeConfig<MC>where
MC: Sync,
impl<MC> Unpin for BackendOidcModeRuntimeConfig<MC>where
MC: Unpin,
impl<MC> UnsafeUnpin for BackendOidcModeRuntimeConfig<MC>where
MC: UnsafeUnpin,
impl<MC> UnwindSafe for BackendOidcModeRuntimeConfig<MC>where
MC: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more