pub struct AclAuthMethodConfigBuilder { /* private fields */ }
Expand description
Builder for AclAuthMethodConfig
.
Implementations§
Source§impl AclAuthMethodConfigBuilder
impl AclAuthMethodConfigBuilder
Sourcepub fn oidc_discovery_url(&mut self, value: String) -> &mut Self
pub fn oidc_discovery_url(&mut self, value: String) -> &mut Self
The OIDC Discovery URL, without any .well-known component (base path)
Sourcepub fn oidc_client_id(&mut self, value: String) -> &mut Self
pub fn oidc_client_id(&mut self, value: String) -> &mut Self
The OAuth Client ID configured with the OIDC provider
Sourcepub fn bound_audiences(&mut self, value: Vec<String>) -> &mut Self
pub fn bound_audiences(&mut self, value: Vec<String>) -> &mut Self
List of auth claims that are valid for login
Sourcepub fn oidc_client_secret(&mut self, value: String) -> &mut Self
pub fn oidc_client_secret(&mut self, value: String) -> &mut Self
The OAuth Client Secret configured with the OIDC provider
Sourcepub fn oidc_disable_user_info(&mut self, value: bool) -> &mut Self
pub fn oidc_disable_user_info(&mut self, value: bool) -> &mut Self
Disable claims from the OIDC UserInfo endpoint
Sourcepub fn bound_issuer(&mut self, value: Vec<String>) -> &mut Self
pub fn bound_issuer(&mut self, value: Vec<String>) -> &mut Self
The value against which to match the iss claim in a JWT
Sourcepub fn discovery_ca_pem(&mut self, value: Vec<String>) -> &mut Self
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.
Sourcepub fn expiration_leeway(&mut self, value: TimeDelta) -> &mut Self
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
Sourcepub fn jwt_validation_pub_keys(&mut self, value: Vec<String>) -> &mut Self
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
Sourcepub fn allowed_redirect_ur_is(&mut self, value: Vec<String>) -> &mut Self
pub fn allowed_redirect_ur_is(&mut self, value: Vec<String>) -> &mut Self
A list of allowed values for redirect_uri
Sourcepub fn jwksca_cert(&mut self, value: String) -> &mut Self
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
Sourcepub fn not_before_leeway(&mut self, value: TimeDelta) -> &mut Self
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.
Sourcepub fn clock_skew_leeway(&mut self, value: TimeDelta) -> &mut Self
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.
pub fn list_claim_mappings( &mut self, value: HashMap<String, String>, ) -> &mut Self
Sourcepub fn jwksurl(&mut self, value: String) -> &mut Self
pub fn jwksurl(&mut self, value: String) -> &mut Self
JSON Web Key Sets url for authenticating signatures
Sourcepub fn oidc_scopes(&mut self, value: Vec<String>) -> &mut Self
pub fn oidc_scopes(&mut self, value: Vec<String>) -> &mut Self
List of OIDC scopes
Sourcepub fn signing_algs(&mut self, value: Vec<String>) -> &mut Self
pub fn signing_algs(&mut self, value: Vec<String>) -> &mut Self
A list of supported signing algorithms
Sourcepub fn claim_mappings(&mut self, value: HashMap<String, String>) -> &mut Self
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).
Sourcepub fn build(
&self,
) -> Result<AclAuthMethodConfig, AclAuthMethodConfigBuilderError>
pub fn build( &self, ) -> Result<AclAuthMethodConfig, AclAuthMethodConfigBuilderError>
Trait Implementations§
Source§impl Clone for AclAuthMethodConfigBuilder
impl Clone for AclAuthMethodConfigBuilder
Source§fn clone(&self) -> AclAuthMethodConfigBuilder
fn clone(&self) -> AclAuthMethodConfigBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more