Little cleanup

This commit is contained in:
Dario Ghunney Ware
2025-10-21 14:15:30 +01:00
parent 0e2e6d06fd
commit 9fde241d1e
4 changed files with 5 additions and 4 deletions

View File

@@ -349,7 +349,8 @@ public class ApplicationProperties {
@Data
public static class RateLimit {
private int maxRequests = 1000;
private String resetSchedule = "0 0 0 * * MON"; // Cron expression: At 00:00 every Monday
private String resetSchedule =
"0 0 0 * * MON"; // Cron expression: At 00:00 every Monday
}
}

View File

@@ -20,7 +20,7 @@ security:
username: '' # initial username for the first login
password: '' # initial password for the first login
oauth2:
enabled: true # set to 'true' to enable login (Note: enableLogin must also be 'true' for this to work)
enabled: false # set to 'true' to enable login (Note: enableLogin must also be 'true' for this to work)
client:
keycloak:
issuer: '' # URL of the Keycloak realm's OpenID Connect Discovery endpoint

View File

@@ -115,7 +115,8 @@ public class CustomLogoutSuccessHandler extends SimpleUrlLogoutSuccessHandler {
samlClient.setSPKeys(certificate, privateKey);
// Build relay state to return user to login page after IdP logout
String relayState = UrlUtils.getOrigin(request) + request.getContextPath() + LOGOUT_PATH;
String relayState =
UrlUtils.getOrigin(request) + request.getContextPath() + LOGOUT_PATH;
// Redirect to identity provider for logout with relay state
samlClient.redirectToIdentityProvider(response, relayState, nameIdValue);

View File

@@ -137,7 +137,6 @@ public class SecurityConfiguration {
.addFilterBefore(
rateLimitingFilter(), UsernamePasswordAuthenticationFilter.class)
.addFilterAfter(firstLoginFilter, IPRateLimitingFilter.class);
// http.addFilterAfter(firstLoginFilter, IPRateLimitingFilter.class);
if (v2Enabled) {
http.addFilterBefore(jwtAuthenticationFilter(), UserAuthenticationFilter.class);