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

chore: Swagger 세팅 #40

Merged
merged 16 commits into from
Feb 11, 2024
Merged

chore: Swagger 세팅 #40

merged 16 commits into from
Feb 11, 2024

Conversation

uwoobeat
Copy link
Member

🌱 관련 이슈

📌 작업 내용 및 특이사항

  • 스웨거 세팅을 진행했습니다.
  • 스웨거 사용 시 개발서버에서 basic auth 적용되도록 @ConditionalOnProperty 사용하여 스웨거 전용 필터체인을 만들었습니다.
  • 인증 스키마 추가하여 스웨거에서 엑세스 토큰 사용할 수 있게 작업해두었습니다.

📝 참고사항

📚 기타

@uwoobeat uwoobeat requested a review from a team as a code owner February 10, 2024 18:10
@uwoobeat uwoobeat changed the title Chore/21 swagger setting chore: Swagger 세팅 Feb 10, 2024
Copy link
Member

@Sangwook02 Sangwook02 left a comment

Choose a reason for hiding this comment

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

확인해주세요!

@@ -5,6 +5,7 @@ public class SecurityConstant {
public static final String REGISTRATION_REQUIRED_HEADER = "Registration-Required";
public static final String TOKEN_ROLE_NAME = "role";
public static final String GITHUB_NAME_ATTR_KEY = "id";
public static final String TOKEN_HEADER_PREFIX = "Bearer ";
Copy link
Member

Choose a reason for hiding this comment

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

토큰 타입으로는 BEARER가 아닌 다른 타입도 올 수 있으니 BEARER_PREFIX와 같은 이름이 의미를 더 잘 담는 것 같습니다.
어떤가요?

Copy link
Member Author

Choose a reason for hiding this comment

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

ACCESS_TOKEN_PREFIX 로 변경하도록 하겠습니다~
Bearer같이 내부의 리터럴 값보다는 사용되는 맥락의 의미가 잘 드러난다고 생각해요

Copy link
Member

Choose a reason for hiding this comment

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

좋습니다
미리 approve 해둘게요~

Copy link
Member

@Sangwook02 Sangwook02 left a comment

Choose a reason for hiding this comment

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

lgtm

@uwoobeat uwoobeat requested a review from Sangwook02 February 11, 2024 04:08
@uwoobeat uwoobeat merged commit 2cdb216 into develop Feb 11, 2024
1 check passed
@uwoobeat uwoobeat deleted the chore/21-swagger-setting branch February 11, 2024 04:10
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.

⚙️ Swagger 세팅
2 participants