I am using the Django Rest Framework in my Python-Django app, and am using a Custom authentication for the api.
If I work just with my custom authentication method, works correctly.
@authentication_classes((CustomAuthentication, ))
But If I try to have basic authentication and my custom authentication, in that order, my custom authentication never executes. I mean, I want that if the Basic authentication fails, then try with the custom authentication. The Basic Authentication is executes and then ends.
@authentication_classes((SessionAuthentication, BasicAuthentication, CustomAuthentication ))
Is possible to have at the same time this three authentication methods, and execute them in that order?