Say I have a REST view:
class CreateUserView(generics.CreateAPIView):
serializer_class = CreateUserSerializer
queryset = User.objects.all()
...how is it possible to protect the view with the client ID and client secret from the oauth toolkit?
So that I can invoke the view via a special request like:
curl -X POST
http://127.0.0.1:8000/user-create/ -d "client_id=<client_id>&client_secret=<client_secret>&username=andrew&password=andrew&first_name=Andrew&last_name=Bonvix"