Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add allowed_names to cert-responses (cli and API) #3654

Merged
merged 1 commit into from
Dec 6, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add allowed_names to cert-response
dominikmuellerdmde committed Dec 6, 2017
commit 5f965260879352439b29d82dabc9cc96e554983c
9 changes: 5 additions & 4 deletions builtin/credential/cert/path_certs.go
Original file line number Diff line number Diff line change
@@ -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
}