• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

torresj / community-api / 6

28 May 2025 02:43PM UTC coverage: 75.157% (+53.1%) from 22.105%
6

push

circleci

Jaime Torres Benavente
Security added

87 of 133 new or added lines in 15 files covered. (65.41%)

239 of 318 relevant lines covered (75.16%)

0.75 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

33.33
/src/main/java/com/torresj/community/security/AuthEntryPointJwt.java
1
package com.torresj.community.security;
2

3
import jakarta.servlet.http.HttpServletRequest;
4
import jakarta.servlet.http.HttpServletResponse;
5
import org.springframework.security.core.AuthenticationException;
6
import org.springframework.security.web.AuthenticationEntryPoint;
7
import org.springframework.stereotype.Component;
8

9
import java.io.IOException;
10

11
@Component
12
public class AuthEntryPointJwt implements AuthenticationEntryPoint {
1✔
13
    @Override
14
    public void commence(
15
            HttpServletRequest request,
16
            HttpServletResponse response,
17
            AuthenticationException authException
18
    ) throws IOException {
NEW
19
        response.sendError(HttpServletResponse.SC_UNAUTHORIZED, "Error: Unauthorized");
×
NEW
20
    }
×
21
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc