backport of commit cfbb2e8923d254bc940e1b01c3e772769600fefe (#19168)
Co-authored-by: James Rasell <jrasell@users.noreply.github.com>
This commit is contained in:
parent
4701162b2d
commit
525534f1d8
|
@ -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),
|
||||
|
|
|
@ -54,13 +54,13 @@ Create a new ACL Auth Method:
|
|||
|
||||
```shell-session
|
||||
$ nomad acl auth-method create -name "example-acl-auth-method" -type "OIDC" -max-token-ttl "1h" -token-locality "local" -config "@config.json"
|
||||
Name = example-acl-auth-method
|
||||
Type = OIDC
|
||||
Locality = local
|
||||
MaxTokenTTL = 1h0m0s
|
||||
Default = false
|
||||
Create Index = 14
|
||||
Modify Index = 14
|
||||
Name = example-acl-auth-method
|
||||
Type = OIDC
|
||||
Locality = local
|
||||
Max Token TTL = 1h0m0s
|
||||
Default = false
|
||||
Create Index = 14
|
||||
Modify Index = 14
|
||||
|
||||
Auth Method Config
|
||||
|
||||
|
|
|
@ -34,13 +34,13 @@ Fetch information about an existing ACL Auth Method:
|
|||
|
||||
```shell-session
|
||||
$ nomad acl auth-method info example-acl-auth-method
|
||||
Name = example-acl-auth-method
|
||||
Type = OIDC
|
||||
Locality = local
|
||||
MaxTokenTTL = 1h0m0s
|
||||
Default = false
|
||||
Create Index = 14
|
||||
Modify Index = 14
|
||||
Name = example-acl-auth-method
|
||||
Type = OIDC
|
||||
Locality = local
|
||||
Max Token TTL = 1h0m0s
|
||||
Default = false
|
||||
Create Index = 14
|
||||
Modify Index = 14
|
||||
|
||||
Auth Method Config
|
||||
|
||||
|
|
|
@ -62,13 +62,13 @@ Update an existing ACL auth method:
|
|||
|
||||
```shell-session
|
||||
$ nomad acl auth-method update -token-locality "global" -config @config.json example-acl-auth-method
|
||||
Name = example-acl-auth-method
|
||||
Type = OIDC
|
||||
Locality = global
|
||||
MaxTokenTTL = 1h0m0s
|
||||
Default = false
|
||||
Create Index = 14
|
||||
Modify Index = 33
|
||||
Name = example-acl-auth-method
|
||||
Type = OIDC
|
||||
Locality = global
|
||||
Max Token TTL = 1h0m0s
|
||||
Default = false
|
||||
Create Index = 14
|
||||
Modify Index = 33
|
||||
|
||||
Auth Method Config
|
||||
|
||||
|
|
Loading…
Reference in New Issue