forked from TrueCloudLab/certificates
Add token payload.
This commit is contained in:
parent
00fd41a3d0
commit
a44f0ca866
1 changed files with 1 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue