Explorar o código

Use a fixed string for renewal token issuer.

Mariano Cano %!s(int64=4) %!d(string=hai) anos
pai
achega
4e4d4e882f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      authority/authorize.go

+ 1 - 1
authority/authorize.go

@@ -399,7 +399,7 @@ func (a *Authority) AuthorizeRenewToken(ctx context.Context, ott string) (*x509.
 	}
 
 	if err := claims.ValidateWithLeeway(jose.Expected{
-		Issuer:  p.GetName(),
+		Issuer:  "step-ca-client/1.0",
 		Subject: leaf.Subject.CommonName,
 		Time:    time.Now().UTC(),
 	}, time.Minute); err != nil {