pub struct AccessTokenSubstrateConfig {
pub resource_server: OAuthResourceServerConfig,
pub token_propagation: TokenPropagation,
}Expand description
Unified configuration for the access-token substrate layer.
This struct owns the configuration for all cross-mode substrate concerns: resource-server verification and token propagation policy.
resource_server is optional at parse time — when absent it defaults to
unconfigured. Call
resolve_all with the OIDC
shared defaults to produce a ResolvedAccessTokenSubstrateConfig.
Fields§
§resource_server: OAuthResourceServerConfigOAuth resource-server verifier configuration.
token_propagation: TokenPropagationToken propagation capability axis.
Trait Implementations§
Source§impl AccessTokenSubstrateConfigSource for AccessTokenSubstrateConfig
impl AccessTokenSubstrateConfigSource for AccessTokenSubstrateConfig
Source§fn resource_server_config(&self) -> &OAuthResourceServerConfig
fn resource_server_config(&self) -> &OAuthResourceServerConfig
Access the raw
[oauth_resource_server] config block.Source§fn token_propagation(&self) -> &TokenPropagation
fn token_propagation(&self) -> &TokenPropagation
Access the token propagation capability axis.
Source§fn resolve_resource_server(
&self,
shared: &OidcSharedConfig,
) -> Result<OAuthResourceServerConfig, BackendConfigError>
fn resolve_resource_server( &self, shared: &OidcSharedConfig, ) -> Result<OAuthResourceServerConfig, BackendConfigError>
Apply OIDC shared defaults to the resource-server config and validate. Read more
Source§fn resolve_all(
&self,
shared: Option<&OidcSharedConfig>,
) -> Result<ResolvedAccessTokenSubstrateConfig, BackendConfigError>
fn resolve_all( &self, shared: Option<&OidcSharedConfig>, ) -> Result<ResolvedAccessTokenSubstrateConfig, BackendConfigError>
Recommended entry point. Resolve all substrate sub-configs in one
step. Read more
Source§impl Clone for AccessTokenSubstrateConfig
impl Clone for AccessTokenSubstrateConfig
Source§fn clone(&self) -> AccessTokenSubstrateConfig
fn clone(&self) -> AccessTokenSubstrateConfig
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 AccessTokenSubstrateConfig
impl Debug for AccessTokenSubstrateConfig
Source§impl Default for AccessTokenSubstrateConfig
impl Default for AccessTokenSubstrateConfig
Source§fn default() -> AccessTokenSubstrateConfig
fn default() -> AccessTokenSubstrateConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AccessTokenSubstrateConfig
impl<'de> Deserialize<'de> for AccessTokenSubstrateConfig
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 Freeze for AccessTokenSubstrateConfig
impl RefUnwindSafe for AccessTokenSubstrateConfig
impl Send for AccessTokenSubstrateConfig
impl Sync for AccessTokenSubstrateConfig
impl Unpin for AccessTokenSubstrateConfig
impl UnsafeUnpin for AccessTokenSubstrateConfig
impl UnwindSafe for AccessTokenSubstrateConfig
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