Home > Back-end >  Django allauth Access blocked: This app’s request is invalid
Django allauth Access blocked: This app’s request is invalid

Time:01-13

I'm using django allauth. Everything working fine, except when trying to signup using Google. I got this error: Access blocked: This app’s request is invalid.

enter image description here

Is there any solution to this?

Here is my Google Developer Console: enter image description here

I've also tried to change http to https and it's also not working

CodePudding user response:

You url is not matching with google url please correct your url in Clound console.

enter image description here

CodePudding user response:

So in my case, what I have to do is change the Authorized redirect URLs from:

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

to

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

just remove the "accounts/" and it works fine.

  • Related