Skip to content

Commit

Permalink
chore(authn/authz): Add logging for Fiat session filter to give error…
Browse files Browse the repository at this point in the history
… visibility. (#974)

* chore(authn/authz): Add debug logging for Fiat session filter to give error visibility.

* chore: fix nit

* Fix duplicate wording

* Removed incorrect statement.

* Updated from debug->warn as there isnt any valid reason for an Authenticated request to not have a user in it

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
clanesf and mergify[bot] committed Jun 3, 2020
1 parent 7cedba3 commit 0895823
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ class FiatSessionFilter implements Filter {
SecurityContextHolder.clearContext()
}
}
} else {
log.warn("Authenticated user was not present in authenticated request. Check authentication settings.")
}
} else {
if (log.isDebugEnabled()) {
Expand Down Expand Up @@ -103,3 +105,4 @@ class FiatSessionFilter implements Filter {
void destroy() {
}
}

0 comments on commit 0895823

Please sign in to comment.