InhaBas / Inhabas.com-api

인하대학교 빅데이터 동아리 IBAS 웹앱, rest 개편 프로젝트 (2021.12.21~)
https://www.inhabas.com
9 stars 11 forks source link

로그인 시 redirect url이 이상할 경우 #122

Closed Yejin0O0 closed 2 years ago

Yejin0O0 commented 2 years ago

https://www.naver.com으로 redirect url 설정한 경우,

구글 -> https://dev.inhabas.com/?error=unauthorized_redirect_uri 카카오, 네이버 -> 네이버로 리다이렉트. https://www.naver.com/?error=user_not_found

Dong-Hyeon-Yu commented 2 years ago

관련된 로그인 로직은 아래와 같음.

  1. 회원이 먼저 존재하는지 검사 -> user_not_found
  2. 회원이 존재하면, redirect_url 검사 ->unauthorized_redirect_uri
Dong-Hyeon-Yu commented 2 years ago

user_not_found 오류가 발생했을 때, default_redirect_uri 로 이동하도록 변경해야함.