Fix: Add api/v2/login to allways allow login #376
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.
api/v2/login 컨트롤러
한줄 요약
로그인을 한 상태에서 다시 로그인 api에 접근하면 화이트라벨 에러가 발생하던 현상을 해결하고자 합니다
상세 설명
기존 : /api/v1/login 은 세션 정보가 없는 상태라면 /oauth2/authorization/idsnucse 로 리다이렉트
수정 : /api/v2/login 은 항상 /oauth2/authorization/idsnucse 로 리다이렉트
필터보단 컨트롤러가 더 가독성 있을 것 같아 별도 컨트롤러 만들었습니다
TODO
프론트엔드까지 수정 완료 후 /api/v1/login 비활성화