forked from TrueCloudLab/certificates
Set the token payload in the JWK provisioner.
This commit is contained in:
parent
5a04e3b36d
commit
9f3acc254b
1 changed files with 2 additions and 0 deletions
|
@ -153,6 +153,8 @@ func (p *JWK) AuthorizeSign(ctx context.Context, token string) ([]SignOption, er
|
||||||
}
|
}
|
||||||
|
|
||||||
data := x509util.CreateTemplateData(claims.Subject, claims.SANs)
|
data := x509util.CreateTemplateData(claims.Subject, claims.SANs)
|
||||||
|
data.SetToken(claims)
|
||||||
|
|
||||||
templateOptions, err := TemplateOptions(p.Options, data)
|
templateOptions, err := TemplateOptions(p.Options, data)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errs.Wrap(http.StatusInternalServerError, err, "jwk.AuthorizeSign")
|
return nil, errs.Wrap(http.StatusInternalServerError, err, "jwk.AuthorizeSign")
|
||||||
|
|
Loading…
Reference in a new issue