This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch 2_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/2_1_X by this push:
new ea1c239 Spring and Spring Security to latest 5.2 versions available
(#272)
ea1c239 is described below
commit ea1c2397bc0b93565d8cd60be97fb6a0fd29fb21
Author: Francesco Chicchiriccò <[email protected]>
AuthorDate: Tue Jun 1 19:56:11 2021 +0200
Spring and Spring Security to latest 5.2 versions available (#272)
---
.../core/spring/security/SyncopeBasicAuthenticationEntryPoint.java | 4 +---
pom.xml | 4 ++--
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git
a/core/spring/src/main/java/org/apache/syncope/core/spring/security/SyncopeBasicAuthenticationEntryPoint.java
b/core/spring/src/main/java/org/apache/syncope/core/spring/security/SyncopeBasicAuthenticationEntryPoint.java
index 5689ff6..c521b88 100644
---
a/core/spring/src/main/java/org/apache/syncope/core/spring/security/SyncopeBasicAuthenticationEntryPoint.java
+++
b/core/spring/src/main/java/org/apache/syncope/core/spring/security/SyncopeBasicAuthenticationEntryPoint.java
@@ -19,7 +19,6 @@
package org.apache.syncope.core.spring.security;
import java.io.IOException;
-import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.syncope.common.rest.api.RESTHeaders;
@@ -33,11 +32,10 @@ public class SyncopeBasicAuthenticationEntryPoint extends
BasicAuthenticationEnt
@Override
public void commence(final HttpServletRequest request, final
HttpServletResponse response,
- final AuthenticationException authException) throws IOException,
ServletException {
+ final AuthenticationException authException) throws IOException {
response.addHeader(RESTHeaders.ERROR_INFO, authException.getMessage());
super.commence(request, response, authException);
}
-
}
diff --git a/pom.xml b/pom.xml
index f7960dc..aebcf25 100644
--- a/pom.xml
+++ b/pom.xml
@@ -408,8 +408,8 @@ under the License.
<jackson.version>2.11.4</jackson.version>
- <spring.version>5.1.20.RELEASE</spring.version>
- <spring-security.version>5.1.13.RELEASE</spring-security.version>
+ <spring.version>5.2.15.RELEASE</spring.version>
+ <spring-security.version>5.2.10.RELEASE</spring-security.version>
<openjpa.version>3.2.0</openjpa.version>
<hikaricp.version>4.0.3</hikaricp.version>