mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2026-03-04 02:20:19 +01:00
Little cleanup
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user