Skip to content

Commit

Permalink
Added missing token role get parameter. Added more samples
Browse files Browse the repository at this point in the history
  • Loading branch information
michelvocks committed Jun 25, 2019
1 parent 6d23564 commit 42717af
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions vault/token_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -3047,6 +3047,7 @@ func (ts *TokenStore) tokenStoreRoleRead(ctx context.Context, req *logical.Reque
"path_suffix": role.PathSuffix,
"renewable": role.Renewable,
"token_type": role.TokenType.String(),
"allowed_entity_aliases": role.AllowedEntityAliases,
},
}

Expand Down
13 changes: 9 additions & 4 deletions website/source/api/auth/token/index.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -577,16 +577,20 @@ $ curl \
"lease_duration": 0,
"renewable": false,
"data": {
"allowed_policies": [
"dev"
"allowed_entity_aliases": [
"my-entity-alias"
],
"allowed_policies": [],
"disallowed_policies": [],
"explicit_max_ttl": 0,
"name": "nomad",
"orphan": false,
"path_suffix": "",
"period": 0,
"renewable": true
"renewable": true,
"token_explicit_max_ttl": 0,
"token_period": 0,
"token_type": "default-service"
},
"warnings": null
}
Expand Down Expand Up @@ -699,7 +703,8 @@ tokens created against a role to be revoked using the
"name": "nomad",
"orphan": false,
"bound_cidrs": ["127.0.0.1/32", "128.252.0.0/16"],
"renewable": true
"renewable": true,
"allowed_entity_aliases": ["web-entity-alias", "app-entity-*"]
```

### Sample Request
Expand Down

0 comments on commit 42717af

Please sign in to comment.