pub struct FrontendOidcModeRuntime { /* private fields */ }Expand description
Runtime for frontend-oidc mode.
Wraps the resolved config (which already embeds capabilities) and provides
helpers for config projection generation. Capabilities are accessed via
self.config.capabilities — they are carried through from the raw config
by [FrontendOidcModeConfigSource::resolve_all].
Implementations§
Source§impl FrontendOidcModeRuntime
impl FrontendOidcModeRuntime
Sourcepub fn new(config: ResolvedFrontendOidcModeConfig) -> Self
pub fn new(config: ResolvedFrontendOidcModeConfig) -> Self
Create a new runtime from a resolved config.
Emits startup warnings for any unsafe capabilities that are enabled.
Sourcepub fn config(&self) -> &ResolvedFrontendOidcModeConfig
pub fn config(&self) -> &ResolvedFrontendOidcModeConfig
Access the resolved config (including capabilities).
Sourcepub fn capabilities(&self) -> &FrontendOidcModeCapabilities
pub fn capabilities(&self) -> &FrontendOidcModeCapabilities
Access the capability axes.
Sourcepub async fn config_projection(
&self,
) -> Result<FrontendOidcModeConfigProjection>
pub async fn config_projection( &self, ) -> Result<FrontendOidcModeConfigProjection>
Build a config projection for the frontend.
Capability settings are read from self.config.capabilities — e.g.
client_secret is only included when UnsafeFrontendClientSecret is
enabled.
§Errors
Returns an io::Error if the claims check script file cannot be read.
Sourcepub async fn config_projection_with_diagnosis(
&self,
) -> DiagnosedResult<FrontendOidcModeConfigProjection, Error>
pub async fn config_projection_with_diagnosis( &self, ) -> DiagnosedResult<FrontendOidcModeConfigProjection, Error>
Build a config projection and return a machine-readable diagnosis.
Trait Implementations§
Source§impl Clone for FrontendOidcModeRuntime
impl Clone for FrontendOidcModeRuntime
Source§fn clone(&self) -> FrontendOidcModeRuntime
fn clone(&self) -> FrontendOidcModeRuntime
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for FrontendOidcModeRuntime
impl RefUnwindSafe for FrontendOidcModeRuntime
impl Send for FrontendOidcModeRuntime
impl Sync for FrontendOidcModeRuntime
impl Unpin for FrontendOidcModeRuntime
impl UnsafeUnpin for FrontendOidcModeRuntime
impl UnwindSafe for FrontendOidcModeRuntime
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
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>
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>
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