Add token payload.

This commit is contained in:
Mariano Cano 2020-07-13 15:20:38 -07:00
parent 00fd41a3d0
commit a44f0ca866

View file

@ -281,6 +281,7 @@ func (p *AWS) AuthorizeSign(ctx context.Context, token string) ([]SignOption, er
// Template options // Template options
data := x509util.NewTemplateData() data := x509util.NewTemplateData()
data.SetToken(payload)
data.SetCommonName(payload.Claims.Subject) data.SetCommonName(payload.Claims.Subject)
// Enforce known CN and default DNS and IP if configured. // Enforce known CN and default DNS and IP if configured.