Explorar el Código

Set the token payload in the JWK provisioner.

Mariano Cano hace 6 años
padre
commit
9f3acc254b
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      authority/provisioner/jwk.go

+ 2 - 0
authority/provisioner/jwk.go

@@ -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")