mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2026-05-01 23:16:31 +02:00
added missing translations
This commit is contained in:
@@ -308,7 +308,6 @@ public class ApplicationProperties {
|
|||||||
private boolean enableKeyRotation = false;
|
private boolean enableKeyRotation = false;
|
||||||
private boolean enableKeyCleanup = true;
|
private boolean enableKeyCleanup = true;
|
||||||
private int keyRetentionDays = 7;
|
private int keyRetentionDays = 7;
|
||||||
private boolean secureCookie;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ security:
|
|||||||
username: '' # initial username for the first login
|
username: '' # initial username for the first login
|
||||||
password: '' # initial password for the first login
|
password: '' # initial password for the first login
|
||||||
oauth2:
|
oauth2:
|
||||||
enabled: false # set to 'true' to enable login (Note: enableLogin must also be 'true' for this to work)
|
enabled: true # set to 'true' to enable login (Note: enableLogin must also be 'true' for this to work)
|
||||||
client:
|
client:
|
||||||
keycloak:
|
keycloak:
|
||||||
issuer: '' # URL of the Keycloak realm's OpenID Connect Discovery endpoint
|
issuer: '' # URL of the Keycloak realm's OpenID Connect Discovery endpoint
|
||||||
@@ -65,7 +65,6 @@ security:
|
|||||||
enableKeyRotation: true # Set to 'true' to enable key pair rotation
|
enableKeyRotation: true # Set to 'true' to enable key pair rotation
|
||||||
enableKeyCleanup: true # Set to 'true' to enable key pair cleanup
|
enableKeyCleanup: true # Set to 'true' to enable key pair cleanup
|
||||||
keyRetentionDays: 7 # Number of days to retain old keys. The default is 7 days.
|
keyRetentionDays: 7 # Number of days to retain old keys. The default is 7 days.
|
||||||
secureCookie: false # Set to 'true' to use secure cookies for JWTs
|
|
||||||
validation: # PDF signature validation settings
|
validation: # PDF signature validation settings
|
||||||
trust:
|
trust:
|
||||||
serverAsAnchor: true # Trust server certificate as anchor for PDF signatures (if configured and self-signed or CA)
|
serverAsAnchor: true # Trust server certificate as anchor for PDF signatures (if configured and self-signed or CA)
|
||||||
|
|||||||
@@ -1,14 +1,15 @@
|
|||||||
package stirling.software.proprietary.security.filter;
|
package stirling.software.proprietary.security.filter;
|
||||||
|
|
||||||
import jakarta.servlet.FilterChain;
|
import static stirling.software.common.util.RequestUriUtils.isStaticResource;
|
||||||
import jakarta.servlet.ServletException;
|
import static stirling.software.proprietary.security.model.AuthenticationType.OAUTH2;
|
||||||
import jakarta.servlet.http.HttpServletRequest;
|
import static stirling.software.proprietary.security.model.AuthenticationType.SAML2;
|
||||||
import jakarta.servlet.http.HttpServletResponse;
|
import static stirling.software.proprietary.security.model.AuthenticationType.WEB;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
|
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
|
||||||
import org.springframework.security.core.Authentication;
|
import org.springframework.security.core.Authentication;
|
||||||
import org.springframework.security.core.AuthenticationException;
|
import org.springframework.security.core.AuthenticationException;
|
||||||
@@ -18,6 +19,14 @@ import org.springframework.security.core.userdetails.UsernameNotFoundException;
|
|||||||
import org.springframework.security.web.AuthenticationEntryPoint;
|
import org.springframework.security.web.AuthenticationEntryPoint;
|
||||||
import org.springframework.security.web.authentication.WebAuthenticationDetailsSource;
|
import org.springframework.security.web.authentication.WebAuthenticationDetailsSource;
|
||||||
import org.springframework.web.filter.OncePerRequestFilter;
|
import org.springframework.web.filter.OncePerRequestFilter;
|
||||||
|
|
||||||
|
import jakarta.servlet.FilterChain;
|
||||||
|
import jakarta.servlet.ServletException;
|
||||||
|
import jakarta.servlet.http.HttpServletRequest;
|
||||||
|
import jakarta.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
import stirling.software.common.model.ApplicationProperties;
|
import stirling.software.common.model.ApplicationProperties;
|
||||||
import stirling.software.common.model.exception.UnsupportedProviderException;
|
import stirling.software.common.model.exception.UnsupportedProviderException;
|
||||||
import stirling.software.proprietary.security.model.ApiKeyAuthenticationToken;
|
import stirling.software.proprietary.security.model.ApiKeyAuthenticationToken;
|
||||||
@@ -27,10 +36,6 @@ import stirling.software.proprietary.security.model.exception.AuthenticationFail
|
|||||||
import stirling.software.proprietary.security.service.CustomUserDetailsService;
|
import stirling.software.proprietary.security.service.CustomUserDetailsService;
|
||||||
import stirling.software.proprietary.security.service.JwtServiceInterface;
|
import stirling.software.proprietary.security.service.JwtServiceInterface;
|
||||||
import stirling.software.proprietary.security.service.UserService;
|
import stirling.software.proprietary.security.service.UserService;
|
||||||
import static stirling.software.common.util.RequestUriUtils.isStaticResource;
|
|
||||||
import static stirling.software.proprietary.security.model.AuthenticationType.OAUTH2;
|
|
||||||
import static stirling.software.proprietary.security.model.AuthenticationType.SAML2;
|
|
||||||
import static stirling.software.proprietary.security.model.AuthenticationType.WEB;
|
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class JwtAuthenticationFilter extends OncePerRequestFilter {
|
public class JwtAuthenticationFilter extends OncePerRequestFilter {
|
||||||
|
|||||||
@@ -3076,6 +3076,10 @@
|
|||||||
"passwordsDoNotMatch": "Passwords do not match",
|
"passwordsDoNotMatch": "Passwords do not match",
|
||||||
"passwordTooShort": "Password must be at least 6 characters long",
|
"passwordTooShort": "Password must be at least 6 characters long",
|
||||||
"invalidEmail": "Please enter a valid email address",
|
"invalidEmail": "Please enter a valid email address",
|
||||||
|
"nameRequired": "Name is required",
|
||||||
|
"emailRequired": "Email is required",
|
||||||
|
"passwordRequired": "Password is required",
|
||||||
|
"confirmPasswordRequired": "Confirm password is required",
|
||||||
"checkEmailConfirmation": "Check your email for a confirmation link to complete your registration.",
|
"checkEmailConfirmation": "Check your email for a confirmation link to complete your registration.",
|
||||||
"accountCreatedSuccessfully": "Account created successfully! You can now sign in.",
|
"accountCreatedSuccessfully": "Account created successfully! You can now sign in.",
|
||||||
"unexpectedError": "Unexpected error: {{message}}"
|
"unexpectedError": "Unexpected error: {{message}}"
|
||||||
|
|||||||
Reference in New Issue
Block a user