Skip to content

Commit

Permalink
cmd: remove unnecessary scope hydra.warden.*
Browse files Browse the repository at this point in the history
  • Loading branch information
arekkas authored and arekkas committed Oct 12, 2017
1 parent 18facbb commit 2214498
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var proxyCmd = &cobra.Command{
ClientID: viper.GetString("HYDRA_CLIENT_ID"),
ClientSecret: viper.GetString("HYDRA_CLIENT_SECRET"),
EndpointURL: viper.GetString("HYDRA_URL"),
Scopes: []string{"hydra.warden", "hydra.warden.*"},
Scopes: []string{"hydra.warden"},
})
if err != nil {
logger.WithError(err).Fatalln("Unable to connect to Hydra SDK.")
Expand Down
3 changes: 2 additions & 1 deletion evaluator/evaluator_warden.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ package evaluator
import (
"net/http"

"strings"

"github.com/ory/hydra/sdk/go/hydra"
"github.com/ory/hydra/sdk/go/hydra/swagger"
"github.com/ory/oathkeeper/helper"
"github.com/ory/oathkeeper/rule"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"github.com/tomasen/realip"
"strings"
)

type WardenEvaluator struct {
Expand Down

0 comments on commit 2214498

Please sign in to comment.