Skip to content

Commit

Permalink
again v2 (jeg gider ikke det her igen)
Browse files Browse the repository at this point in the history
  • Loading branch information
Teller501 committed Dec 11, 2023
1 parent 396e215 commit f724099
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/dk/kea/onav2ndproject_rest/JwtFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import jakarta.servlet.http.HttpServletResponse;

import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.core.userdetails.UserDetails;
Expand All @@ -19,7 +20,9 @@
@AllArgsConstructor
@Component
public class JwtFilter extends OncePerRequestFilter {
@Autowired
private JwtUserDetailsService userDetailsService;
@Autowired
private JwtTokenManager jwtTokenManager;
@Override
protected void doFilterInternal(HttpServletRequest request,
Expand Down

0 comments on commit f724099

Please sign in to comment.