Skip to content

Commit

Permalink
cmd: Do not split empty scope (#45)
Browse files Browse the repository at this point in the history
Signed-off-by: arekkas <[email protected]>
  • Loading branch information
aeneasr authored Aug 31, 2018
1 parent 3c44b58 commit b29cf8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/server/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ package server
import (
"fmt"
"net/http"
"strings"

"github.com/julienschmidt/httprouter"
"github.com/meatballhat/negroni-logrus"
"github.com/ory/fosite"
"github.com/ory/go-convenience/corsx"
"github.com/ory/go-convenience/stringsx"
"github.com/ory/graceful"
"github.com/ory/herodot"
"github.com/ory/keto/authentication"
Expand Down Expand Up @@ -81,7 +81,7 @@ func RunServe(
viper.GetString("AUTHENTICATOR_OAUTH2_INTROSPECTION_CLIENT_SECRET"),
viper.GetString("AUTHENTICATOR_OAUTH2_INTROSPECTION_TOKEN_URL"),
viper.GetString("AUTHENTICATOR_OAUTH2_INTROSPECTION_URL"),
strings.Split(viper.GetString("AUTHENTICATOR_OAUTH2_INTROSPECTION_SCOPE"), ","),
stringsx.Splitx(viper.GetString("AUTHENTICATOR_OAUTH2_INTROSPECTION_SCOPE"), ","),
strategy,
),
"oauth2/clients": authentication.NewOAuth2ClientCredentialsAuthentication(
Expand Down

0 comments on commit b29cf8c

Please sign in to comment.