강의

멘토링

커뮤니티

인프런 커뮤니티 질문&답변

John Jung님의 프로필 이미지
John Jung

작성한 질문수

파이썬 사용자를 위한 웹개발 입문 A to Z Django + Bootstrap

실제 서비스 사이트에서 google login 허용하기

부탁드립니다 . 너무 답답하네여,

작성

·

4.8K

0

서버에 올린 제 웹사이트가 다른것은 다 되는데

 

구글 로그인 하려고 하는데 이렇게 나오네요.

 

무엇이 잘못된거죠??

 

Error: redirect_uri_mismatch

The redirect URI in the request, http://www.rightfuljung.com/accounts/google/login/callback/, does not match the ones authorized for the OAuth client. To update the authorized redirect URIs, visit: https://console.developers.google.com/apis/credentials/oauthclient/422665297283-gvc70puumgok9a0u4lq6k7cnams2pc3o.apps.googleusercontent.com?project=422665297283

Learn more

That’s all we know.

답변 1

0

저는 로컬에서 스터디로 코딩중인데요

does not match the ones authorized for the OAuth client

이렇게 오류가 나와서...

구글 API 설정에서 '승인된 리디렉션 URI' 에서 

http://127.0.0.1:8000/accounts/google/login/

http://127.0.0.1:8000/accounts/google/login/callback/

이렇게 둘 다 넣어주니까 로그인창으로 정상적으로 넘어갔습니다..

John Jung님의 프로필 이미지
John Jung

작성한 질문수

질문하기