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
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§
impl Freeze for OidcRootState
impl RefUnwindSafe for OidcRootState
impl Send for OidcRootState
impl Sync for OidcRootState
impl Unpin for OidcRootState
impl UnwindSafe for OidcRootState
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