# using allauth with Django and google on localhost

**URL:** <https://forum.djangoproject.com/t/using-allauth-with-django-and-google-on-localhost/30616>\
**Category:** Mystery Errors\
**Created:** [April 28, 2024, 2:45am UTC](https://forum.djangoproject.com/t/using-allauth-with-django-and-google-on-localhost/30616 "2024-04-28T02:45:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Coolmike890](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/coolmike890/32/19565_2.png) [@Coolmike890](https://forum.djangoproject.com/u/Coolmike890)\
**Post date:** [April 28, 2024, 2:45am UTC](https://forum.djangoproject.com/t/using-allauth-with-django-and-google-on-localhost/30616/1 "2024-04-28T02:45:28Z")

</div>

I’m wanting to use the allauth module for third party authentication on a localhost server. I have it working for other social applications, but google will not allow local addresses in the URI redirects (I believe they used to, but have disallowed it). By adding an entry in the hosts file, I am able to redirect an [example.com](http://example.com) to localhost, and thus satisfy the google requirements.

However, I still get an error when I try it:  
Access blocked: Authorization Error  
device\_id and device\_name are required for private IP

Does anyone have this working? If so, could you please provide a roadmap to solve it?
