diff --git a/cmd/eksterd/auth.go b/cmd/eksterd/auth.go index 848ace6..829f3d4 100644 --- a/cmd/eksterd/auth.go +++ b/cmd/eksterd/auth.go @@ -53,8 +53,6 @@ func (b *memoryBackend) cachedCheckAuthToken(conn redis.Conn, header string, r * } authorized := b.checkAuthToken(header, r) - authorized = true - if authorized { fmt.Printf("Token response: %#v\n", r) _, err = conn.Do("HMSET", redis.Args{}.Add(key).AddFlat(r)...) diff --git a/pkg/auth/types.go b/pkg/auth/types.go index 20aee69..d5707d0 100644 --- a/pkg/auth/types.go +++ b/pkg/auth/types.go @@ -1,5 +1,6 @@ package auth +// Auther type Auther interface { AuthTokenAccepted(header string, r *TokenResponse) bool }