Skip to content

Commit

Permalink
fix: Add claims and grpc to the middleware list.
Browse files Browse the repository at this point in the history
Claims and grpc weren't in the middleware list in server/middleware.go.

Signed-off-by: Alastair Houghton <alastair@alastairs-place.net>
  • Loading branch information
al45tair committed Nov 2, 2020
1 parent dbc87dc commit af0c5c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import (

"github.com/dexidp/dex/middleware"
"github.com/dexidp/dex/middleware/groups"
"github.com/dexidp/dex/middleware/claims"
"github.com/dexidp/dex/middleware/grpc"

"github.com/dexidp/dex/connector"
"github.com/dexidp/dex/pkg/log"
Expand All @@ -28,7 +30,9 @@ type MiddlewareConfig interface {
// MiddlewaresConfig variable provides an easy way to return a config struct
// depending on the middleware type.
var MiddlewaresConfig = map[string]func() MiddlewareConfig{
"claims": func() MiddlewareConfig { return new(claims.Config) },
"groups": func() MiddlewareConfig { return new(groups.Config) },
"grpc": func() MiddlewareConfig { return new(grpc.Config) },
}

// openMiddleware will parse the middleware config and open the middleware.
Expand Down

0 comments on commit af0c5c2

Please sign in to comment.