freelec-springboot2-webservice
freelec-springboot2-webservice copied to clipboard
[오류] p.192 로그인 시 구글 이름이 아닌 Home으로 로그인
어떤 오류인가요?
오류설명:
-
로그인 시 이름이 아닌 Home으로 표시됩니다. 구글 로그인은 정상적으로 했는데 이유를 모르겠습니다.
-
그리고, 로그아웃이 정삭적으로 돌아가는지 확인차 로그아웃을 누르고 다시 로그인할 시 아래처럼
[authorization_request_not_found]
에러가 발생합니다. 아래의 Google 링크를 클릭하면 다시 "/"엔드포인트로 돌아가기는 하는데 잘못된것인지 문제가 있는 것인지 궁금합니다.
프로젝트 주소
- Github URL: https://github.com/SuhHyeonjun/gradle-test
오류 로그
- 로그인 시 Hibernate: select user0_.id as id1_1_, user0_.email as email2_1_, user0_.name as name3_1_, user0_.picture as picture4_1_, user0_.role as role5_1_ from user user0_ where user0_.email=? Hibernate: select user0_.id as id1_1_0_, user0_.email as email2_1_0_, user0_.name as name3_1_0_, user0_.picture as picture4_1_0_, user0_.role as role5_1_0_ from user user0_ where user0_.id=? Hibernate: select posts0_.id as id1_0_, posts0_.created_date as created_2_0_, posts0_.modified_date as modified3_0_, posts0_.author as author4_0_, posts0_.content as content5_0_, posts0_.title as title6_0_ from posts posts0_ order by posts0_.id DESC
오류 로그를 올리려고 하다보니 알게 된 사실인데, 2번 문제는 로그아웃 했다 로그인 했다를 빠르게 반복하면서 생기는 문제네요 하하
1번 오류도 해결하였습니다. (혹시나 같은 문제로 왜 이러지 ? 하는 분들이 계실 수 있을까봐 공유합니다.)
로그인된 이름이 Home인데 제 window 사용자 이름과 같은걸 볼 수 있었습니다.
아마 제 윈도우 userName 환경변수와 indexController와 index.mustache의 userName이 충될하여 위와 같이 Home으로 출력되는 것 같아서 indexController와 index.mustache의 userName을 겹치지 않도록 수정하였더니 정상적으로 출력되었습니다.
오~ 덕분에 이름이 잘 나오네요!!ㅎㅎ 감사합니다!! 👍🏻