Skip to content

Commit

Permalink
delete extra logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadelrouby committed Sep 6, 2024
1 parent 9e059e4 commit 805ea3e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,8 @@ func (a *Authorizer) Authorize(_ http.ResponseWriter, r *http.Request, authOptio

// if the decoding middleware wasn't triggered, attempt decoding
if _, ok = r.Context().Value("authDecoded").(bool); !ok {
a.logger.Info("Decoding middleware not triggered")
missing, validated, keyClaims, err = a.extractClaims(r)
} else {
a.logger.Info("Decoding middleware already triggered")
// Use previously decoded values
missing, ok = r.Context().Value("authTokenMissing").(bool)
if !ok || missing {
Expand Down

0 comments on commit 805ea3e

Please sign in to comment.