From a44f0ca8666cd13860e6996f8ad53d1efe1b7665 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Mon, 13 Jul 2020 15:20:38 -0700 Subject: [PATCH] Add token payload. --- authority/provisioner/aws.go | 1 + 1 file changed, 1 insertion(+) diff --git a/authority/provisioner/aws.go b/authority/provisioner/aws.go index a2461630..45abac97 100644 --- a/authority/provisioner/aws.go +++ b/authority/provisioner/aws.go @@ -281,6 +281,7 @@ func (p *AWS) AuthorizeSign(ctx context.Context, token string) ([]SignOption, er // Template options data := x509util.NewTemplateData() + data.SetToken(payload) data.SetCommonName(payload.Claims.Subject) // Enforce known CN and default DNS and IP if configured.