Skip to content

Commit

Permalink
Fix authority url
Browse files Browse the repository at this point in the history
Signed-off-by: Han Verstraete (OpenFaaS Ltd) <han@openfaas.com>
  • Loading branch information
welteki authored and alexellis committed Jun 17, 2024
1 parent 57eb957 commit 2bd6101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion executor/jwt_authenticator.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

func NewJWTAuthMiddleware(next http.Handler) (http.Handler, error) {

var authority = "https://gateway.openfaas:8080/.well-known/openid-configuration"
var authority = "http://gateway.openfaas:8080/.well-known/openid-configuration"
if v, ok := os.LookupEnv("jwt_auth_local"); ok && (v == "true" || v == "1") {
authority = "http://127.0.0.1:8000/.well-known/openid-configuration"
}
Expand Down

0 comments on commit 2bd6101

Please sign in to comment.