pub struct ACLAuthMethod {
pub type: String,
pub token_locality: String,
pub token_name_format: String,
pub config: Option<ACLAuthMethodConfig>,
pub create_time: DateTime<Utc>,
pub modify_time: DateTime<Utc>,
pub modify_index: u64,
pub name: String,
pub default: bool,
pub create_index: u64,
pub max_token_ttl: TimeDelta,
}
Expand description
ACLAuthMethod is used to capture the properties of an authentication method used for single sing-on.
This struct was generated based on the Go types of the official Nomad API.
Fields§
§type: String
Type is the SSO identifier this auth-method is. Nomad currently only supports “oidc” and the API contains ACLAuthMethodTypeOIDC for convenience.
token_locality: String
Defines whether the auth-method creates a local or global token when performing SSO login. This should be set to either “local” or “global” and the API contains ACLAuthMethodTokenLocalityLocal and ACLAuthMethodTokenLocalityGlobal for convenience.
token_name_format: String
TokenNameFormat defines the HIL template to use when building the token name
config: Option<ACLAuthMethodConfig>
Config contains the detailed configuration which is specific to the auth-method.
create_time: DateTime<Utc>
§modify_time: DateTime<Utc>
§modify_index: u64
§name: String
Name is the identifier for this auth-method and is a required parameter.
default: bool
Default identifies whether this is the default auth-method to use when attempting to login without specifying an auth-method name to use.
create_index: u64
§max_token_ttl: TimeDelta
MaxTokenTTL is the maximum life of a token created by this method.
Trait Implementations§
Source§impl Clone for ACLAuthMethod
impl Clone for ACLAuthMethod
Source§fn clone(&self) -> ACLAuthMethod
fn clone(&self) -> ACLAuthMethod
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more