Skip to content

Commit

Permalink
Merge pull request #891 from briantist/auth.token.create_orphan/role_…
Browse files Browse the repository at this point in the history
…name

Add `role_name` parameter to `auth.token.create_orphan`
  • Loading branch information
colin-pm committed Sep 16, 2022
2 parents 2eae41d + 6dc56b6 commit 1a68935
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,32 @@
- build-test: Add test. GH-844
- Bump version: 0.11.2 → 1.0.0. GH-829

## 💥 Breaking Changes
### 💥 Breaking Changes

- Legacy MFA: Move mfa authentication method to legacy MFA method. GH-883
- Remove deprecated methods. GH-868
- Remove redundant code for Python <= 3.5. GH-822
- Drop Python 2 and EOL Python 3 versions. GH-819

## 🚀 Features
### 🚀 Features

- Token: Add create orphaned token method. GH-869
- Allow configuring the possible salt lengths for RSA PSS signatures. GH-846
- ssh: Add secret engine. GH-811

## 🐛 Bug Fixes
### 🐛 Bug Fixes

- setup.py: Add encoding for long_description. GH-843
- Don't override user warning filters. GH-818

## 📚 Documentation
### 📚 Documentation

- Migrate to Poetry. GH-854
- docs(auth-methods): update kubernetes. GH-837
- README: Remove help wanted note. GH-848
- Update kubernetes authentication example. GH-827

## 🧰 Miscellaneous
### 🧰 Miscellaneous

- .gitignore: Add vscode config directory. GH-867
- Add stock version-resolver cfg for release-drafter. GH-836
Expand Down
4 changes: 4 additions & 0 deletions hvac/api/auth_methods/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def create(
def create_orphan(
self,
id=None,
role_name=None,
policies=None,
meta=None,
no_default_policy=False,
Expand All @@ -156,6 +157,8 @@ def create_orphan(
The ID provided may not contain a `.` character. Otherwise, the
token ID is a randomly generated value.
:type id: str
:param role_name: The name of the token role.
:type role_name: str
:param policies: A list of policies for the token. This must be a
subset of the policies belonging to the token making the request, unless root.
If not specified, defaults to all the policies of the calling token.
Expand Down Expand Up @@ -203,6 +206,7 @@ def create_orphan(
params = utils.remove_nones(
{
"id": id,
"role_name": role_name,
"policies": policies,
"meta": meta,
"no_default_policy": no_default_policy,
Expand Down

0 comments on commit 1a68935

Please sign in to comment.