Compare commits

..

1 Commits

Author SHA1 Message Date
7cb571939e refactor: user and authentication service 2026-03-18 10:48:59 -03:00
7 changed files with 6 additions and 9 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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