diff --git a/services/gateway/security/authentication.go b/services/gateway/security/authentication.go index 2e6b1d339..04e35930d 100644 --- a/services/gateway/security/authentication.go +++ b/services/gateway/security/authentication.go @@ -90,7 +90,7 @@ func userInfoFromRequest(req *http.Request, configuration *appConfig.Security, e claims := t.Claims.(jwt.MapClaims) if issuer, ok := claims["iss"].(string); ok { if issuer == "tweek" || issuer == "tweek-basic-auth" { - return tweekPrivateKey, nil + return tweekPrivateKey.Public(), nil } if keyID, ok := t.Header["kid"].(string); ok { diff --git a/services/gateway/version.go b/services/gateway/version.go index a2d2e8ac8..b5ac71d5d 100644 --- a/services/gateway/version.go +++ b/services/gateway/version.go @@ -1,4 +1,4 @@ package main // Version is the version of gateway -const Version = "1.0.0-rc9" +const Version = "1.0.0-rc10"