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

PR :: 토큰 로직 재설계 #215

Merged
merged 62 commits into from
May 8, 2024

Conversation

Daybreak312
Copy link
Member

@Daybreak312 Daybreak312 commented May 7, 2024

어떤 종류의 PR 인가요?

/kind 기능
/kind 리펙토링

이 PR이 무슨 일을 하나요? / 필요한 이유가 뭔가요?

주 변경점
  • 토큰 관련 클래스 및 구조를 재설계했습니다.
    이전에 JwtResolverImpl, JwtAdapter에서 처리하던 토큰의 관리 책임을 분할 및 추상화했습니다. 자세한 사항은 [com.info.maeumgagym.security.mgtoken.docs]를 참고해주세요.
  • JWT 토큰 대신 커스텀 토큰인 마음가짐 토큰을 적용했습니다.
    요약하면, JWT의 취약점 및 관련 라이브러리의 문제점을 지적하여 새로운 토큰의 필요성을 제시했습니다.
    위에서 언급된 docs를 참고해주세요.
  • 토큰과 관련해, 위에서 언급된 주 모듈 외에 보조적인 모듈을 구현했습니다. (MaeumgagymTokenContext 등)
부가 변경점
  • RequestContext -> CurrentRequestContext
    이름이 너무 추상적이기에 클래스의 책임을 제대로 표현하지 못한다 판단했습니다. 보다 구체적이도록 리네이밍했습니다.
    CurrentRequestContext의 사용 위치가 CurrentRequestContextInterceptor보다 앞에서 실행될 경우 정상적으로 사용되지 않아, Filter로 전환했습니다.
  • ApplicationFilterChain 적용
    CurrentRequestContextFilter의 순서(위치)의 중요성이 높아, 이전부터 존재했던 이슈였던 FilterChain과 관련된 문제점을 해결함과 동시에 Filter의 순서를 조정했습니다.

리뷰어를 위한 참고사항:


자세한 사항은 [com.info.maeumgagym.security.mgtoken.docs]를 참고해주세요.

@Daybreak312 Daybreak312 reopened this May 8, 2024
@maeumgagym-ci-robot-app
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Daybreak312

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

1 similar comment
@maeumgagym-ci-robot-app
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Daybreak312

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Daybreak312 Daybreak312 reopened this May 8, 2024
@Daybreak312 Daybreak312 closed this May 8, 2024
@Daybreak312 Daybreak312 reopened this May 8, 2024
@Daybreak312 Daybreak312 changed the title 토큰 로직 재설계 PR :: 토큰 로직 재설계 May 8, 2024
@gurdl0525
Copy link
Member

/lgtm

@maeumgagym-ci-robot-app maeumgagym-ci-robot-app bot added the lgtm Looks good to me label May 8, 2024
@maeumgagym-ci-robot-app maeumgagym-ci-robot-app bot merged commit 52153b6 into develop May 8, 2024
3 checks passed
@maeumgagym-ci-robot-app maeumgagym-ci-robot-app bot deleted the jwt-module-refactoring branch May 8, 2024 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved kind/리펙토링 refactoring code kind/기능 functional development lgtm Looks good to me size/XXL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants