Set the token payload in the JWK provisioner.

This commit is contained in:
Mariano Cano 2020-07-08 15:54:00 -07:00
parent 5a04e3b36d
commit 9f3acc254b

View file

@ -153,6 +153,8 @@ func (p *JWK) AuthorizeSign(ctx context.Context, token string) ([]SignOption, er
}
data := x509util.CreateTemplateData(claims.Subject, claims.SANs)
data.SetToken(claims)
templateOptions, err := TemplateOptions(p.Options, data)
if err != nil {
return nil, errs.Wrap(http.StatusInternalServerError, err, "jwk.AuthorizeSign")