- 비밀번호 정책 서버 검증 강화 (영대/소문자, 숫자, 특수문자 조합, 8~64자) - 동일 비밀번호 재사용 금지 검증 추가 - 비밀번호 변경 후 세션 무효화 (Refresh Token 삭제) - ChangePasswordResponseDto 신규 (re_login_required 힌트) - 에러코드 추가 (PasswordPolicyViolation, PasswordReuseForbidden) - AuthController Swagger 문서 보강 Closes #251
23 lines
1.2 KiB
C#
23 lines
1.2 KiB
C#
using SPMS.Application.DTOs.Account;
|
|
using SPMS.Application.DTOs.Auth;
|
|
|
|
namespace SPMS.Application.Interfaces;
|
|
|
|
public interface IAuthService
|
|
{
|
|
Task<SignupResponseDto> SignupAsync(SignupRequestDto request);
|
|
Task<LoginResponseDto> LoginAsync(LoginRequestDto request);
|
|
Task<TokenRefreshResponseDto> RefreshTokenAsync(TokenRefreshRequestDto request);
|
|
Task LogoutAsync(long adminId, string accessToken);
|
|
Task<ChangePasswordResponseDto> ChangePasswordAsync(long adminId, ChangePasswordRequestDto request);
|
|
Task<EmailCheckResponseDto> CheckEmailAsync(EmailCheckRequestDto request);
|
|
Task<EmailVerifyResponseDto> VerifyEmailAsync(EmailVerifyRequestDto request);
|
|
Task<EmailResendResponseDto> ResendVerificationAsync(EmailResendRequestDto request);
|
|
Task ForgotPasswordAsync(PasswordForgotRequestDto request);
|
|
Task ResetPasswordAsync(PasswordResetRequestDto request);
|
|
Task IssueTempPasswordAsync(TempPasswordRequestDto request);
|
|
Task<ProfileResponseDto> GetProfileAsync(long adminId);
|
|
Task<ProfileResponseDto> UpdateProfileAsync(long adminId, UpdateProfileRequestDto request);
|
|
Task<ActivityListResponseDto> GetActivityListAsync(long adminId, ActivityListRequestDto request);
|
|
}
|