Skip to content

Commit

Permalink
fix gateway key usage (#1128)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yshayy committed Mar 24, 2019
1 parent 12ec5a3 commit c21a23c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion services/gateway/security/authentication.go
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion 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"

0 comments on commit c21a23c

Please sign in to comment.