forked from TrueCloudLab/certificates
Rename internal field
This commit is contained in:
parent
f9df8ac05f
commit
a1f54921d2
2 changed files with 6 additions and 6 deletions
|
@ -24,7 +24,7 @@ type jwtPayload struct {
|
||||||
|
|
||||||
type stepPayload struct {
|
type stepPayload struct {
|
||||||
SSH *SignSSHOptions `json:"ssh,omitempty"`
|
SSH *SignSSHOptions `json:"ssh,omitempty"`
|
||||||
RAInfo *RAInfo `json:"ra,omitempty"`
|
RA *RAInfo `json:"ra,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// JWK is the default provisioner, an entity that can sign tokens necessary for
|
// JWK is the default provisioner, an entity that can sign tokens necessary for
|
||||||
|
@ -175,10 +175,10 @@ func (p *JWK) AuthorizeSign(ctx context.Context, token string) ([]SignOption, er
|
||||||
|
|
||||||
// Wrap provisioner if the token is an RA token.
|
// Wrap provisioner if the token is an RA token.
|
||||||
var self Interface = p
|
var self Interface = p
|
||||||
if claims.Step != nil && claims.Step.RAInfo != nil {
|
if claims.Step != nil && claims.Step.RA != nil {
|
||||||
self = &raProvisioner{
|
self = &raProvisioner{
|
||||||
Interface: p,
|
Interface: p,
|
||||||
raInfo: claims.Step.RAInfo,
|
raInfo: claims.Step.RA,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -223,10 +223,10 @@ func (p *X5C) AuthorizeSign(ctx context.Context, token string) ([]SignOption, er
|
||||||
|
|
||||||
// Wrap provisioner if the token is an RA token.
|
// Wrap provisioner if the token is an RA token.
|
||||||
var self Interface = p
|
var self Interface = p
|
||||||
if claims.Step != nil && claims.Step.RAInfo != nil {
|
if claims.Step != nil && claims.Step.RA != nil {
|
||||||
self = &raProvisioner{
|
self = &raProvisioner{
|
||||||
Interface: p,
|
Interface: p,
|
||||||
raInfo: claims.Step.RAInfo,
|
raInfo: claims.Step.RA,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue