Firebase Auth Filter가 선택된 URL에 대해서만 적용되도록 합니다.#175
Open
Conversation
Member
Author
|
프론트엔드에서 웹뷰에서 토큰을 넘길 준비가 되면 머지하도록 합니다. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 개요 (필수)
Firebase Auth Filter가 선택된 URL에 대해서만 적용되도록 합니다.
Resolves #163.
🔨 작업 사항 (필수)
Firebase Auth Filter가 선택된 URL에 대해서만 적용되도록 합니다.
해결 방법:
@Component로 컴포넌트를 등록하지 않고 생성자를 호출해 인증 필터로 주입인증 필터에 대해
WebSecurityCustomizer를 만들어 whitelist를 적용추가로, Swagger에서 버튼을 눌러 Bearer Authorization header를 넣을 수 있도록 했습니다.
🌱 연관 내용 (선택)
원래 원했던 것은 커스텀 어노테이션을 API 위에 붙여 인증하는 것으로 알고 있는데.. 아직 구현이 되어 있지 않습니다.
현재 방식을 그대로 유지한다면 이 글을,
헤더에서 빼오는 방식으로 커스텀 어노테이션을 사용하고 싶다면 이 글을 참고해도 좋을 것 같습니다. 여기에 기능이 좀 더 필요하다면(role 검사) 좀 더 작업이 필요하겠지만요!