강의

멘토링

커뮤니티

Inflearn Community Q&A

jungweak1412's profile image
jungweak1412

asked

Introduction to Web Development for Python Users A to Z Django + Bootstrap

Allow Google login on actual service site

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

Written on

·

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.

djangopythonbootstrap

Answer 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/

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

jungweak1412's profile image
jungweak1412

asked

Ask a question