Skip to content

Commit

Permalink
add allowed_names to cert-response (#3779)
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikmueller authored and jefferai committed Jan 16, 2018
1 parent 2e51b15 commit e28d924
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions builtin/credential/cert/path_certs.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,13 @@ func (b *backend) pathCertRead(ctx context.Context, req *logical.Request, d *fra

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

0 comments on commit e28d924

Please sign in to comment.