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

[13] 일반 사용자 : 결제 #35

Merged
merged 6 commits into from
Oct 6, 2024
Merged

Conversation

ohsuha
Copy link
Collaborator

@ohsuha ohsuha commented Oct 2, 2024

  • filter 를 통해 user id (키클락) 을 얻을 수 있도록 수정
  • swagger 에서 access token 을 입력할 수 있도록 수정
  • 결제 api 구현

- user id, created at, updated at 칼럼 추가, 불필요한 칼럼 삭제
- filter 에서 swagger 관련 주소 거치지 않도록 설정
- swagger 에 payments api 추가
- order id 를 통해 주문한 내역의 결제를 진행하는 API
@ohsuha ohsuha linked an issue Oct 2, 2024 that may be closed by this pull request
@ohsuha ohsuha changed the base branch from develop to feature/test-code October 2, 2024 13:54
Comment on lines 21 to 25
if (request.getRequestURI().equals("/auth/callback")
|| request.getRequestURI().equals("/users/keycloak/webhook")
|| request.getRequestURI().contains("/swagger-ui")
|| request.getRequestURI().contains("/api-docs")
) {

Choose a reason for hiding this comment

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

SecurityConfig를 바꿀때마다 여기도 수정해야한다는 것을 알기 쉽지 않을 것 같은데, 어떻게 처리하면 좋을까요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

아 이것도 requestMatchers 로 넣으면 될것같네요..! 수정하겠습니다

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

requestMatchers 로 될 수 있을 줄 알았는데 안돼서;; 여러가지 방법을 찾아보다가 exclude api 들을 환경변수로 뺀다음, ConfigurationProperties 로 가져와 security config 와 filter 에서 둘다 사용하도록 수정했습니다!

- ConfigurationProperties 클래스 생성하여 환경변수에서 가져오는 것으로 수정
@ohsuha ohsuha merged commit 27baed2 into feature/test-code Oct 6, 2024
1 check passed
@ohsuha ohsuha deleted the feature/user/13-purchase branch October 19, 2024 04:16
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