Skip to content
#

api-key

Here are 38 public repositories matching this topic...

florimondmanca
florimondmanca commented Jan 28, 2020

Is your feature request related to a problem? Please describe.
Currently, it's not obvious how we can access the raw API key from within a view that's protected behind a permission classes. (This may be useful in order to e.g. fetch resources associated to that key).

Users can access the request headers directly:

scheme, _, key = request.META["HTTP_AUTHORIZATION"].partition("

Improve this page

Add a description, image, and links to the api-key topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the api-key topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.