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

[bug] spring security 403 error 해결 #28

Merged
merged 3 commits into from
Nov 24, 2023

Conversation

Jnghne
Copy link
Contributor

@Jnghne Jnghne commented Nov 23, 2023

구현한 것

  • 이슈 원인 : 인증 필터에서 인증 완료 이후 authentication 객체를 spring security 세션에 넣어주지 않아서, spring security가 해당 요청이 인증 되었는지 확인 하지 못해 403 오류가 발생한 것으로 확인됩니다.
  • 해결 : JwtAuthentication 필터에서 인증을 완료 한 이후 Authentication 객체를 생성한 뒤 spring security 세션 내부에 넣어주었습니다.

기타

  • 내용

Copy link
Member

@yonghwankim-dev yonghwankim-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다.

@yonghwankim-dev yonghwankim-dev merged commit 99a7f7e into dev Nov 24, 2023
@yonghwankim-dev yonghwankim-dev deleted the feat/#15-spring-security branch November 24, 2023 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants