Vault SSH: Added SSHAgent API

This commit is contained in:
vishalnayak
2015-08-12 10:48:58 -07:00
parent f21c64e874
commit 67b705565e
2 changed files with 80 additions and 0 deletions

View File

@@ -30,6 +30,9 @@ func pathVerify(b *backend) *framework.Path {
func (b *backend) pathVerifyWrite(req *logical.Request, d *framework.FieldData) (*logical.Response, error) {
otp := d.Get("otp").(string)
// If OTP is not a UUID and a string matching VerifyEchoRequest, then the
// response will be VerifyEchoResponse. This is used by agent to check if
// connection to Vault server is proper.
if otp == VerifyEchoRequest {
return &logical.Response{
Data: map[string]interface{}{