Skip to content

Commit

Permalink
Provider config (hashicorp#943)
Browse files Browse the repository at this point in the history
* Rush B!

* .

* Provider config (hashicorp#1)

* Rush B!

* .

* added provider_config to the matchingJwtMountConfigOptions list
  • Loading branch information
Gaardsholt authored Jan 21, 2021
1 parent df79907 commit 2863aeb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions vault/resource_jwt_auth_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,14 @@ func jwtAuthBackendResource() *schema.Resource {
Computed: true,
Description: "The accessor of the JWT auth backend",
},
"provider_config": {
Type: schema.TypeMap,
Optional: true,
Description: "Provider specific handling configuration",
Elem: &schema.Schema{
Type: schema.TypeString,
},
},
"tune": authMountTuneSchema(),
},
}
Expand All @@ -131,6 +139,7 @@ func jwtCustomizeDiff(d *schema.ResourceDiff, meta interface{}) error {
"oidc_discovery_url",
"jwks_url",
"jwt_validation_pubkeys",
"provider_config",
}

for _, attr := range attributes {
Expand Down Expand Up @@ -159,6 +168,7 @@ var (
"bound_issuer",
"jwt_supported_algs",
"default_role",
"provider_config",
}
)

Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/jwt_auth_backend.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ The following arguments are supported:

* `default_role` - (Optional) The default role to use if none is provided during login

* `provider_config` - (Optional) Provider specific handling configuration

* tune - (Optional) Extra configuration block. Structure is documented below.

The `tune` block is used to tune the auth backend:
Expand Down

0 comments on commit 2863aeb

Please sign in to comment.