N
N
No_name4512021-06-15 23:18:12
Django
No_name451, 2021-06-15 23:18:12

How to connect django_allauth to project in docker-compose?

Hello.

The essence of the question: how to connect applications for user authentication / authorization through django-allauth to a project deployed in docker-compose?

When raising the dev server through ./manage.py runserver 8080authentication and authorization through the vk / github applications, it goes well, but as soon as I raise the project in docker-compose, errors immediately fly out:
VK :

{"error":"invalid_request","error_description":"redirect_uri has wrong domain, check application settings"}

GitHub :
Redirect to default allauth page:
Social network authorization
error An error occurred during the social network authorization.


I'm assuming this is due to the extra network created by docker, but I don't know how to fix it.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question