Answer the question
In order to leave comments, you need to log in
How to implement social authorization through django-rest-auth?
The official django-rest-auth documentation only says about setting up an endpoint for a post request.
And about where, in fact, to register secret keys and id's of applications (for example, vk or google) nothing. I found materials that say that you need to write in settings.py:
SOCIAL_AUTH_VK_OAUTH2_KEY = 'id_vk_app'
SOCIAL_AUTH_VK_OAUTH2_SECRET = 'secret_key_vk_app'
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = 'PRETTY_VERBOSE_GOOGLE_APP_ID'
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = 'GOOGLE_APP_SECRET'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question