Skip to content

Commit

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

* .

* Provider config (#1)

* Rush B!

* .

* added provider_config to the matchingJwtMountConfigOptions list
  • Loading branch information
Gaardsholt authored Jan 21, 2021
1 parent 6c6a468 commit ad2757c
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 ad2757c

Please sign in to comment.