Skip to content

Commit

Permalink
cmd: Resolve broken introspection scope setting
Browse files Browse the repository at this point in the history
Signed-off-by: arekkas <[email protected]>
  • Loading branch information
arekkas authored and aeneasr committed Aug 31, 2018
1 parent 475f39a commit 18837a9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/helper_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (
"net/url"

"github.com/ory/fosite"
"github.com/ory/go-convenience/stringsx"
"github.com/ory/hydra/sdk/go/hydra"
"github.com/ory/keto/sdk/go/keto"
"github.com/ory/oathkeeper/proxy"
Expand Down Expand Up @@ -212,13 +213,13 @@ func handlerFactories(keyManager rsakey.Manager) ([]proxy.Authenticator, []proxy
viper.GetString("AUTHENTICATOR_OAUTH2_INTROSPECTION_AUTHORIZATION_CLIENT_SECRET"),
viper.GetString("AUTHENTICATOR_OAUTH2_INTROSPECTION_AUTHORIZATION_TOKEN_URL"),
u,
strings.Split(viper.GetString("AUTHENTICATOR_OAUTH2_INTROSPECTION_AUTHORIZATION_SCOPE"), ","),
stringsx.Splitx(viper.GetString("AUTHENTICATOR_OAUTH2_INTROSPECTION_AUTHORIZATION_SCOPE"), ","),
getScopeStrategy("AUTHENTICATOR_OAUTH2_INTROSPECTION_SCOPE_STRATEGY"),
)
}))
logger.Info("Authenticator \"oauth2_client_credentials\" was configured and enabled successfully.")
logger.Info("Authenticator \"oauth2_introspection\" was configured and enabled successfully.")
} else {
logger.Warn("Authenticator \"oauth2_client_credentials\" is not configured and thus disabled.")
logger.Warn("Authenticator \"oauth2_introspection\" is not configured and thus disabled.")
}

if u := viper.GetString("AUTHENTICATOR_OAUTH2_CLIENT_CREDENTIALS_TOKEN_URL"); len(u) > 0 {
Expand Down

0 comments on commit 18837a9

Please sign in to comment.