From c21a23cecf99d6af48fb336e9efda345695c8753 Mon Sep 17 00:00:00 2001 From: Yshayy Date: Sun, 24 Mar 2019 20:04:08 +0200 Subject: [PATCH] fix gateway key usage (#1128) --- services/gateway/security/authentication.go | 2 +- services/gateway/version.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"