HTTP response headers in python django-graphene

In our project, we are using bearer tokens for normal programmatic access, but would like to implement basic auth along side for use in graphiql.

In order to do this, in the case where neither Bearer or Basic are specified, I want to return www-authenticate response header to cause the browser to request the userid/password for basic auth.

Any suggestions how to do this?

Back to Top