Skip to content

Commit

Permalink
fix: Don't log the failure messages irrelevant for all the problems. (#…
Browse files Browse the repository at this point in the history
…3542)

* Log only the relevant message for OIDC failure

Signed-off-by: Jakub Balhar <[email protected]>

* Trigger Build

* Trigger Build

---------

Signed-off-by: Jakub Balhar <[email protected]>
Co-authored-by: Jakub Balhar <[email protected]>
  • Loading branch information
balhar-jakub and Jakub Balhar authored May 14, 2024
1 parent bf4d7fc commit 714fa6a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ public boolean isValid(AuthSource authSource) {
return true;
}
logger.log(MessageType.DEBUG, "OIDC token is not valid or the validation failed.");
return false;
}
logger.log(MessageType.DEBUG, "Invalid auth source type provided.");
return false;
}
logger.log(MessageType.DEBUG, "Authentication source is invalid.");
return false;
Expand Down

0 comments on commit 714fa6a

Please sign in to comment.