pub struct AclAuthMethod {
pub create_index: u64,
pub modify_index: u64,
pub name: String,
pub type: String,
pub token_locality: String,
pub max_token_ttl: TimeDelta,
pub default: bool,
pub modify_time: DateTime<Utc>,
pub token_name_format: String,
pub config: Option<AclAuthMethodConfig>,
pub create_time: DateTime<Utc>,
}
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 client.
Fields§
§create_index: u64
§modify_index: u64
§name: String
Name is the identifier for this auth-method and is a required parameter.
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.
max_token_ttl: TimeDelta
MaxTokenTTL is the maximum life of a token created by this method.
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.
modify_time: DateTime<Utc>
§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>
Implementations§
Source§impl AclAuthMethod
impl AclAuthMethod
pub fn builder() -> AclAuthMethodBuilder
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