Enum wasm_oidc_plugin::discovery::OidcRootState

source ·
pub enum OidcRootState {
    Uninitialized,
    LoadingConfig {
        plugin_config: Arc<PluginConfiguration>,
    },
    LoadingJwks {
        plugin_config: Arc<PluginConfiguration>,
        auth_endpoint: Url,
        token_endpoint: Url,
        issuer: String,
        jwks_uri: Url,
    },
    Ready {
        plugin_config: Arc<PluginConfiguration>,
        open_id_config: Arc<OpenIdConfig>,
    },
}
Expand description

The state of the root context is an enum which has the following variants:

  • Uninitialized: The plugin is not yet configured
  • LoadingConfig: The plugin configuration is being loaded
  • LoadingJwks: The jwks configuration is being loaded
  • Ready: The plugin is ready Each state has a different set of fields which are needed for that specific state.

Variants§

§

Uninitialized

State when the plugin needs to load the plugin configuration

§

LoadingConfig

The root context is loading the configuration from the open id discovery endpoint

Fields

§plugin_config: Arc<PluginConfiguration>

Plugin config loaded from the envoy configuration

§

LoadingJwks

The root context is loading the jwks configuration

Fields

§plugin_config: Arc<PluginConfiguration>

Plugin config

§auth_endpoint: Url

The authorization endpoint to start the code flow

§token_endpoint: Url

The token endpoint to exchange the code for a token

§issuer: String

The issuer

§jwks_uri: Url

The url from which the public keys can be retrieved

§

Ready

The root context is ready

Fields

§plugin_config: Arc<PluginConfiguration>

Plugin config loaded from the envoy configuration

§open_id_config: Arc<OpenIdConfig>

Open id config loaded from the open id discovery endpoint and the jwks endpoint

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V