Compare commits

..

1 Commits

Author SHA1 Message Date
0c635f76cf refactor: user and authentication service 2026-03-18 10:45:24 -03:00
7 changed files with 9 additions and 6 deletions

View File

@ -1,6 +1,8 @@
package com.magamochi.authentication.security;
package com.magamochi.authentication.config;
import com.magamochi.authentication.security.JwtRequestFilter;
import com.magamochi.user.service.CustomUserDetailsService;
import com.magamochi.util.JwtUtil;
import java.util.List;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Bean;

View File

@ -4,6 +4,7 @@ import static java.util.Objects.isNull;
import static java.util.Objects.nonNull;
import com.magamochi.user.service.CustomUserDetailsService;
import com.magamochi.util.JwtUtil;
import jakarta.servlet.FilterChain;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;

View File

@ -3,8 +3,8 @@ package com.magamochi.authentication.service;
import com.magamochi.authentication.model.dto.AuthenticationRequestDTO;
import com.magamochi.authentication.model.dto.AuthenticationResponseDTO;
import com.magamochi.authentication.model.dto.RefreshTokenRequestDTO;
import com.magamochi.authentication.security.JwtUtil;
import com.magamochi.user.service.UserService;
import com.magamochi.util.JwtUtil;
import lombok.RequiredArgsConstructor;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.BadCredentialsException;

View File

@ -1,4 +1,4 @@
package com.magamochi.common.config;
package com.magamochi.config;
import com.google.common.util.concurrent.RateLimiter;
import org.springframework.context.annotation.Bean;

View File

@ -1,4 +1,4 @@
package com.magamochi.common.config;
package com.magamochi.config;
import lombok.NonNull;
import org.springframework.context.annotation.Configuration;

View File

@ -1,4 +1,4 @@
package com.magamochi.user.controller;
package com.magamochi.controller;
import com.magamochi.common.model.dto.DefaultResponseDTO;
import com.magamochi.user.model.dto.RegistrationRequestDTO;

View File

@ -1,4 +1,4 @@
package com.magamochi.authentication.security;
package com.magamochi.util;
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.Jwts;