Struct AclAuthMethodConfigBuilder

Source
pub struct AclAuthMethodConfigBuilder { /* private fields */ }
Expand description

Builder for AclAuthMethodConfig.

Implementations§

Source§

impl AclAuthMethodConfigBuilder

Source

pub fn jwt_validation_pub_keys(&mut self, value: Vec<String>) -> &mut Self

A list of PEM-encoded public keys to use to authenticate signatures locally

Source

pub fn jwksurl(&mut self, value: String) -> &mut Self

JSON Web Key Sets url for authenticating signatures

Source

pub fn oidc_discovery_url(&mut self, value: String) -> &mut Self

The OIDC Discovery URL, without any .well-known component (base path)

Source

pub fn oidc_client_id(&mut self, value: String) -> &mut Self

The OAuth Client ID configured with the OIDC provider

Source

pub fn oidc_client_secret(&mut self, value: String) -> &mut Self

The OAuth Client Secret configured with the OIDC provider

Source

pub fn oidc_client_assertion( &mut self, value: Option<OidcClientAssertion>, ) -> &mut Self

Optionally send a signed JWT (“private key jwt”) as a client assertion to the OIDC provider

Source

pub fn oidc_enable_pkce(&mut self, value: bool) -> &mut Self

Enable S256 PKCE challenge verification.

Source

pub fn oidc_disable_user_info(&mut self, value: bool) -> &mut Self

Disable claims from the OIDC UserInfo endpoint

Source

pub fn oidc_scopes(&mut self, value: Vec<String>) -> &mut Self

List of OIDC scopes

Source

pub fn bound_audiences(&mut self, value: Vec<String>) -> &mut Self

List of auth claims that are valid for login

Source

pub fn bound_issuer(&mut self, value: Vec<String>) -> &mut Self

The value against which to match the iss claim in a JWT

Source

pub fn allowed_redirect_ur_is(&mut self, value: Vec<String>) -> &mut Self

A list of allowed values for redirect_uri

Source

pub fn discovery_ca_pem(&mut self, value: Vec<String>) -> &mut Self

PEM encoded CA certs for use by the TLS client used to talk with the OIDC Discovery URL.

Source

pub fn jwksca_cert(&mut self, value: String) -> &mut Self

PEM encoded CA cert for use by the TLS client used to talk with the JWKS URL

Source

pub fn signing_algs(&mut self, value: Vec<String>) -> &mut Self

A list of supported signing algorithms

Source

pub fn expiration_leeway(&mut self, value: TimeDelta) -> &mut Self

Duration in seconds of leeway when validating expiration of a token to account for clock skew

Source

pub fn not_before_leeway(&mut self, value: TimeDelta) -> &mut Self

Duration in seconds of leeway when validating not before values of a token to account for clock skew.

Source

pub fn clock_skew_leeway(&mut self, value: TimeDelta) -> &mut Self

Duration in seconds of leeway when validating all claims to account for clock skew.

Source

pub fn claim_mappings(&mut self, value: HashMap<String, String>) -> &mut Self

Mappings of claims (key) that will be copied to a metadata field (value).

Source

pub fn list_claim_mappings( &mut self, value: HashMap<String, String>, ) -> &mut Self

Source

pub fn verbose_logging(&mut self, value: bool) -> &mut Self

Enables logging of claims and binding-rule evaluations when debug level logging is enabled.

Source

pub fn build( &self, ) -> Result<AclAuthMethodConfig, AclAuthMethodConfigBuilderError>

Builds a new AclAuthMethodConfig.

§Errors

If a required field has not been initialized.

Trait Implementations§

Source§

impl Clone for AclAuthMethodConfigBuilder

Source§

fn clone(&self) -> AclAuthMethodConfigBuilder

Returns a duplicate 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 Default for AclAuthMethodConfigBuilder

Source§

fn default() -> Self

Returns the “default value” for a type. 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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> 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.