Custom Model Django Oauth

I'm a little new to Django, and I never liked working with a user in web design. Is there a good basic example / tutorial on authenticating a Django user model with Oauth such as Twitter? Can I use the current user model and the data in it, or do I need to create a new table and transfer the current users?

I tried searching on Google, etc., and although I can see a little where many django-social and oauth plugins come with things, I can’t understand how they store tokens, and if they apply to the User Model.

In short, I just need a basic example and a simple English description of how to implement Oauth (or any login API) with the built-in Django User model.

Thanks!

+6
source share
1 answer

You should try python-social-auth (old obsolete version of Django Social auth ).

+3
source

Source: https://habr.com/ru/post/902076/


All Articles