Struct wasm_oidc_plugin::config::PluginConfiguration

source ·
pub struct PluginConfiguration {
Show 21 fields pub config_endpoint: Url, pub reload_interval_in_h: u64, pub exclude_hosts: Vec<Regex>, pub exclude_paths: Vec<Regex>, pub exclude_urls: Vec<Regex>, pub access_token_header_name: Option<String>, pub access_token_header_prefix: Option<String>, pub id_token_header_name: Option<String>, pub id_token_header_prefix: Option<String>, pub cookie_name: String, pub filter_plugin_cookies: bool, pub cookie_duration: u64, pub token_validation: bool, pub aes_key: Secret<Aes256Gcm>, pub authority: String, pub redirect_uri: Url, pub client_id: String, pub scope: String, pub claims: String, pub client_secret: Secret<String>, pub audience: String,
}
Expand description

Struct that holds the configuration for the plugin. It is loaded from the config file envoy.yaml

Fields§

§config_endpoint: Url

Config endpoint for the plugin.

§reload_interval_in_h: u64

Reload interval in hours

§exclude_hosts: Vec<Regex>

Exclude hosts. Example: localhost:10000

§exclude_paths: Vec<Regex>

Exclude paths. Example: /health

§exclude_urls: Vec<Regex>

Exclude urls. Example: localhost:10000/health

§access_token_header_name: Option<String>

The header name that will be used for the access token. If the header name is empty, the access token will not be forwarded

§access_token_header_prefix: Option<String>

Prefix for the access token header. If the prefix is empty, the access token will be forwarded without a prefix

§id_token_header_name: Option<String>

The header name that will be used for the id token. If the header name is empty, the id token will not be forwarded

§id_token_header_prefix: Option<String>

Prefix for the id token header. If the prefix is empty, the id token will be forwarded without a prefix

§cookie_name: String

The cookie name that will be used for the session cookie

§filter_plugin_cookies: bool

Filter out the cookies created and controlled by the plugin If the value is true, the cookies will be filtered out

§cookie_duration: u64

The cookie duration in seconds

§token_validation: bool

Option to skip Token Validation

§aes_key: Secret<Aes256Gcm>

AES Key

§authority: String

The authority that will be used for the dispatch calls

§redirect_uri: Url

The redirect uri that the authorization endpoint will redirect to and provide the code

§client_id: String

The client id

§scope: String

The scope

§claims: String

The claims

§client_secret: Secret<String>

The client secret

§audience: String

The audience. Sometimes its the same as the client id

Trait Implementations§

source§

impl Clone for PluginConfiguration

source§

fn clone(&self) -> PluginConfiguration

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PluginConfiguration

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for PluginConfiguration

source§

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§

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> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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

source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,