-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Indicate that max_token_ttl is required for OIDC auth methods (#360)
Co-authored-by: Rémi Lapeyre <[email protected]>
- Loading branch information
1 parent
7ce8556
commit e13f206
Showing
12 changed files
with
160 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,5 +43,3 @@ Read-Only: | |
- `peer_server_addresses` (List of String) | ||
- `peer_server_name` (String) | ||
- `state` (String) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
resource "consul_acl_auth_method" "oidc" { | ||
name = "auth0" | ||
type = "oidc" | ||
max_token_ttl = "5m" | ||
|
||
config_json = jsonencode({ | ||
AllowedRedirectURIs = [ | ||
"http://localhost:8550/oidc/callback", | ||
"http://localhost:8500/ui/oidc/callback" | ||
] | ||
BoundAudiences = [ | ||
"V1RPi2MYptMV1RPi2MYptMV1RPi2MYpt" | ||
] | ||
ClaimMappings = { | ||
"http://example.com/first_name" = "first_name" | ||
"http://example.com/last_name" = "last_name" | ||
} | ||
ListClaimMappings = { | ||
"http://consul.com/groups" = "groups" | ||
} | ||
OIDCClientID = "V1RPi2MYptMV1RPi2MYptMV1RPi2MYpt" | ||
OIDCClientSecret = "...(omitted)..." | ||
OIDCDiscoveryURL = "https://my-corp-app-name.auth0.com/" | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
resource "consul_acl_auth_method" "minikube" { | ||
name = "minikube" | ||
type = "kubernetes" | ||
description = "dev minikube cluster" | ||
|
||
config_json = jsonencode({ | ||
Host = "https://192.0.2.42:8443" | ||
CACert = "-----BEGIN CERTIFICATE-----\n...-----END CERTIFICATE-----\n" | ||
ServiceAccountJWT = "eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9..." | ||
}) | ||
} |
Oops, something went wrong.