Skip to content

Commit

Permalink
Adding namespace_in_state to jwt (#1144)
Browse files Browse the repository at this point in the history
* Adding namespace_in_state to jwt

Fix #995

Signed-off-by: David Vallee Delisle <me@dvd.dev>

* Moving the parameter at the bottom of the list

---------

Signed-off-by: David Vallee Delisle <me@dvd.dev>
  • Loading branch information
valleedelisle committed Mar 23, 2024
1 parent 19ad4f5 commit 9107f3c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hvac/api/auth_methods/jwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def configure(
default_role=None,
provider_config=None,
path=None,
namespace_in_state=None,
):
"""Configure the validation information to be used globally across all roles.
Expand Down Expand Up @@ -86,6 +87,9 @@ def configure(
:type provider_config: map
:param path: The "path" the method/backend was mounted on.
:type path: str | unicode
:param namespace_in_state: With this setting, the allowed redirect URL(s) in Vault and on the provider side
should not contain a namespace query parameter.
:type namespace_in_state: bool
:return: The response of the configure request.
:rtype: requests.Response
"""
Expand All @@ -104,6 +108,7 @@ def configure(
"jwt_supported_algs": jwt_supported_algs,
"default_role": default_role,
"provider_config": provider_config,
"namespace_in_state": namespace_in_state,
}
)
api_path = utils.format_url(
Expand Down

0 comments on commit 9107f3c

Please sign in to comment.