refactor: Fix yellow code smells #27

Merged
jank merged 11 commits from refactor/fix-yellow-code-smells into main 2024-10-02 08:43:02 +00:00
Showing only changes of commit 37ab14d33e - Show all commits

refactor(security): simplify logout method parameters
Some checks failed
Quality Check / Tests (pull_request) Successful in 1m3s
Build PR / Build and analyze (pull_request) Successful in 1m59s
gitea-sonarqube-bot ERROR
Quality Check / Checkstyle Main (pull_request) Successful in 46s

Jan K9f 2024-10-02 10:23:43 +02:00
Signed by: jank
GPG key ID: B267751B8AE29EFE

View file

@ -25,10 +25,10 @@ public class KeycloakLogoutHandler implements LogoutHandler {
@Override
public void logout(HttpServletRequest request, HttpServletResponse response, Authentication auth) {
logout(request, auth);
logout(auth);
}
public void logout(HttpServletRequest request, Authentication auth) {
public void logout(Authentication auth) {
logoutFromKeycloak((OidcUser) auth.getPrincipal());
}