-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
There was a problem hiding this 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 "; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
토큰 타입으로는 BEARER가 아닌 다른 타입도 올 수 있으니 BEARER_PREFIX
와 같은 이름이 의미를 더 잘 담는 것 같습니다.
어떤가요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACCESS_TOKEN_PREFIX
로 변경하도록 하겠습니다~
Bearer같이 내부의 리터럴 값보다는 사용되는 맥락의 의미가 잘 드러난다고 생각해요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
좋습니다
미리 approve 해둘게요~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
🌱 관련 이슈
📌 작업 내용 및 특이사항
@ConditionalOnProperty
사용하여 스웨거 전용 필터체인을 만들었습니다.📝 참고사항
📚 기타