Skip to content

Commit

Permalink
upd config
Browse files Browse the repository at this point in the history
  • Loading branch information
ulricden committed Jun 4, 2021
1 parent 105dd44 commit 19a9c40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cerbere.go → auth.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package cerbere
package traefik_auth_middleware

import (
"context"
Expand Down Expand Up @@ -39,8 +39,8 @@ type KeycloakResponse struct {
}

func New(ctx context.Context, next http.Handler, config *Config, name string) (http.Handler, error) {
if len(config.IAM) != 5 {
return nil, fmt.Errorf("IAM Configuration must be defined!")
if len(config.IAM) != 4 {
return nil, fmt.Errorf("IAM Configuration must be defined")
}

return &Cerbere{
Expand Down

0 comments on commit 19a9c40

Please sign in to comment.