backport of commit cfbb2e8923d254bc940e1b01c3e772769600fefe (#19168)

Co-authored-by: James Rasell <jrasell@users.noreply.github.com>
This commit is contained in:
hc-github-team-nomad-core 2023-11-24 04:56:31 -06:00 committed by GitHub
parent 4701162b2d
commit 525534f1d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 22 deletions

View File

@ -77,7 +77,7 @@ func formatAuthMethod(authMethod *api.ACLAuthMethod) string {
fmt.Sprintf("Name|%s", authMethod.Name),
fmt.Sprintf("Type|%s", authMethod.Type),
fmt.Sprintf("Locality|%s", authMethod.TokenLocality),
fmt.Sprintf("MaxTokenTTL|%s", authMethod.MaxTokenTTL.String()),
fmt.Sprintf("Max Token TTL|%s", authMethod.MaxTokenTTL.String()),
fmt.Sprintf("Default|%t", authMethod.Default),
fmt.Sprintf("Create Index|%d", authMethod.CreateIndex),
fmt.Sprintf("Modify Index|%d", authMethod.ModifyIndex),

View File

@ -57,7 +57,7 @@ $ nomad acl auth-method create -name "example-acl-auth-method" -type "OIDC" -max
Name = example-acl-auth-method
Type = OIDC
Locality = local
MaxTokenTTL = 1h0m0s
Max Token TTL = 1h0m0s
Default = false
Create Index = 14
Modify Index = 14

View File

@ -37,7 +37,7 @@ $ nomad acl auth-method info example-acl-auth-method
Name = example-acl-auth-method
Type = OIDC
Locality = local
MaxTokenTTL = 1h0m0s
Max Token TTL = 1h0m0s
Default = false
Create Index = 14
Modify Index = 14

View File

@ -65,7 +65,7 @@ $ nomad acl auth-method update -token-locality "global" -config @config.json exa
Name = example-acl-auth-method
Type = OIDC
Locality = global
MaxTokenTTL = 1h0m0s
Max Token TTL = 1h0m0s
Default = false
Create Index = 14
Modify Index = 33