Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Day-4] Spring Security 적용 #4

Merged
merged 5 commits into from
Nov 24, 2022
Merged

[Day-4] Spring Security 적용 #4

merged 5 commits into from
Nov 24, 2022

Conversation

giibeom
Copy link
Owner

@giibeom giibeom commented Nov 24, 2022

작업 개요

  • 기존 Interceptor로 되어 있던 인증 토큰 검증을 filter로 이관합니다.
  • 회원 수정, 삭제 API에 인증(Auth) 과정을 추가합니다.

작업 내용

  • Spring Security
    • Spring Security 구현
    • 기존 인증 Interceptor 제거 후 인증이 필요한 API에 Security 적용
    • 회원 수정 API에 인증(Auth) 추가 (+ 테스트 작성)
    • 회원 삭제 API에 인증(Auth) 추가 (+ 테스트 작성)

@giibeom giibeom changed the title [Day-4] Spring Security 적용 및 비밀번호 암호화 [Day-4] Spring Security 적용 Nov 24, 2022
- 기존 URI를 직접 체크하여 인증 여부를 확인했던 방식을 `@PreAuthorize("isAuthenticated()")` 방식으로 변경
- `@PreAuthorize`가 선언되어 있는 컨트롤러만 인증(Auth) 진행
@giibeom giibeom merged commit fbe079a into main Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant