Skip to content

Commit

Permalink
add allowed_names to cert-response (#3654)
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikmueller authored and jefferai committed Dec 6, 2017
1 parent f700c64 commit 534ea17
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions builtin/credential/cert/path_certs.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,11 @@ func (b *backend) pathCertRead(

return &logical.Response{
Data: map[string]interface{}{
"certificate": cert.Certificate,
"display_name": cert.DisplayName,
"policies": cert.Policies,
"ttl": duration / time.Second,
"certificate": cert.Certificate,
"display_name": cert.DisplayName,
"policies": cert.Policies,
"ttl": duration / time.Second,
"allowed_names": cert.AllowedNames,
},
}, nil
}
Expand Down

0 comments on commit 534ea17

Please sign in to comment.