0

I'm building a Django web app with django-allauth handling user authentication.

As title, how do you expose a RESTful API to authenticate users from a Chrome extension? Taking into account of both:

  1. locally stored username & password hash string pairs and
  2. third party social log-in providers?

What is the best or simplest way to do this?

Zilong Li
  • 889
  • 10
  • 23

1 Answers1

0

I found the best solution to be Django-Rest-Framework.

I installed DRF, and wrote a serializer for my User model and an API view to handle token authentication.

Zilong Li
  • 889
  • 10
  • 23