Skip to content

Commit 80e989d

Browse files
committed
Code cleanup
1 parent f6a7b21 commit 80e989d

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

portable/comp-server-core/pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<groupId>diacomp</groupId>
55
<artifactId>comp-server-core</artifactId>
66
<version>1.0.0-SNAPSHOT</version>
7+
<description>This module is used by both comp-server-rest and legacy comp-server (Wicket).
8+
To be merged into comp-server-rest after migration</description>
79

810
<parent>
911
<groupId>org.springframework.boot</groupId>

portable/comp-server-rest/src/main/java/org/bosik/diacomp/web/backend/features/user/auth/MyBasicAuthenticationEntryPoint.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import org.springframework.security.core.AuthenticationException;
2121
import org.springframework.security.web.authentication.www.BasicAuthenticationEntryPoint;
2222

23-
import javax.servlet.ServletException;
2423
import javax.servlet.http.HttpServletRequest;
2524
import javax.servlet.http.HttpServletResponse;
2625
import java.io.IOException;
@@ -31,7 +30,7 @@ public class MyBasicAuthenticationEntryPoint extends BasicAuthenticationEntryPoi
3130
{
3231
@Override
3332
public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authEx)
34-
throws IOException, ServletException
33+
throws IOException
3534
{
3635
response.addHeader("WWW-Authenticate", "Basic realm=\"" + getRealmName() + "\"");
3736
response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
@@ -40,7 +39,7 @@ public void commence(HttpServletRequest request, HttpServletResponse response, A
4039
}
4140

4241
@Override
43-
public void afterPropertiesSet() throws Exception
42+
public void afterPropertiesSet()
4443
{
4544
setRealmName("Diacomp");
4645
super.afterPropertiesSet();

0 commit comments

Comments
 (0)