mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-04 20:06:27 +02:00
set entity id on the token (#3468)
This commit is contained in:
parent
eabc1842cd
commit
d5f3f3a3a0
@ -1171,6 +1171,7 @@ func (c *Core) sealInitCommon(req *logical.Request) (retErr error) {
|
||||
Policies: te.Policies,
|
||||
Metadata: te.Meta,
|
||||
DisplayName: te.DisplayName,
|
||||
EntityID: te.EntityID,
|
||||
}
|
||||
|
||||
if err := c.auditBroker.LogRequest(auth, req, c.auditedHeaders, nil); err != nil {
|
||||
@ -1277,6 +1278,7 @@ func (c *Core) StepDown(req *logical.Request) (retErr error) {
|
||||
Policies: te.Policies,
|
||||
Metadata: te.Meta,
|
||||
DisplayName: te.DisplayName,
|
||||
EntityID: te.EntityID,
|
||||
}
|
||||
|
||||
if err := c.auditBroker.LogRequest(auth, req, c.auditedHeaders, nil); err != nil {
|
||||
|
||||
@ -461,6 +461,7 @@ func (c *Core) handleLoginRequest(req *logical.Request) (*logical.Response, *log
|
||||
CreationTime: time.Now().Unix(),
|
||||
TTL: auth.TTL,
|
||||
NumUses: auth.NumUses,
|
||||
EntityID: auth.EntityID,
|
||||
}
|
||||
|
||||
te.Policies = policyutil.SanitizePolicies(te.Policies, true)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user