From 7846696fbb6972794afd5a5a681972da3de32512 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Wed, 29 Jan 2020 11:58:47 -0800 Subject: [PATCH] Fix return sign options on ssh sign. --- authority/authorize.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authority/authorize.go b/authority/authorize.go index bda59520..2bf7223b 100644 --- a/authority/authorize.go +++ b/authority/authorize.go @@ -100,8 +100,8 @@ func (a *Authority) Authorize(ctx context.Context, token string) ([]provisioner. if a.sshCAHostCertSignKey == nil && a.sshCAUserCertSignKey == nil { return nil, errs.NotImplemented("authority.Authorize; ssh certificate flows are not enabled", opts...) } - _, err := a.authorizeSSHSign(ctx, token) - return nil, errs.Wrap(http.StatusInternalServerError, err, "authority.Authorize", opts...) + signOpts, err := a.authorizeSSHSign(ctx, token) + return signOpts, errs.Wrap(http.StatusInternalServerError, err, "authority.Authorize", opts...) case provisioner.SSHRenewMethod: if a.sshCAHostCertSignKey == nil && a.sshCAUserCertSignKey == nil { return nil, errs.NotImplemented("authority.Authorize; ssh certificate flows are not enabled", opts...)