Skip to content
This repository has been archived by the owner on Dec 7, 2020. It is now read-only.

Commit

Permalink
Ignore client id check when checking access token
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavol Ipoth committed Nov 16, 2020
1 parent fe7edee commit 6a89ed7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func (r *oauthProxy) authenticationMiddleware() func(http.Handler) http.Handler
// step: if the error post verification is anything other than a token
// expired error we immediately throw an access forbidden - as there is
// something messed up in the token
if err != ErrAccessTokenExpired {
if err != ErrAccessTokenExpired && !strings.Contains(err.Error(), "expected audience") {
r.log.Error("access token failed verification",
zap.String("client_ip", clientIP),
zap.Error(err))
Expand Down

0 comments on commit 6a89ed7

Please sign in to comment.