question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Authentication with DRF_API_KEY_SECRET_KEY_HEADER only

See original GitHub issue

Is your feature request related to a problem? Please describe. It would be handy to allow client to use only a secret key value DRF_API_KEY_SECRET_KEY_HEADER to access endpoints.

Describe the solution you’d like Client software provides only DRF_API_KEY_SECRET_KEY_HEADER and has its access to the endpoints and it is clear on the Django side to which client this key belongs to.

Describe alternatives you’ve considered Adopt DRF token authentication for non-human clients.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:27 (15 by maintainers)

github_iconTop GitHub Comments

2reactions
ssrebeliouscommented, Jan 24, 2019

I suppose then, that the issue of having 2 separate credentials is only that of UX from your users perspective?

Yes, UX is better with a single key only, without any additional IDs. I do integrate your library and will have to use both ID and the key (as there are no other options at the moment), though I would like to implement desired behaviour in feture if this package will provide needed functionality.

I want access to my API to be as simple as this example from geocoder:

>>> import geocoder # pip install geocoder
>>> g = geocoder.bing('Mountain View, CA', key='<API KEY>')   # notice that only API-key is required
>>> g.json
...
1reaction
ssrebeliouscommented, Apr 24, 2019

Great job! 👏

Read more comments on GitHub >

github_iconTop Results From Across the Web

User Guide - Django REST Framework API Key - GitHub Pages
This is useful if you plan to use API keys AND an authentication scheme which already uses the Authorization header (e.g. token-based authentication)....
Read more >
Secret API key for accessing Django REST framework
Is there any straightforward solution to do this in django rest framework? Or just to pass the key in request header and then...
Read more >
How to Implement API Key Authentication in Rails Without ...
We'll be storing the current API key bearer and the current API key into controller-level instance variables, current_bearer and current_api_key ...
Read more >
djangorestframework-api-key 2.2.0 - PyPI
Generate, view and revoke API keys from the Django admin. Authenticate requests using the Api-Token and Api-Secret-Key headers. Customizable via the ...
Read more >
Authentication - Django REST framework
Django, API, REST, Authentication. ... For clients to authenticate, the token key should be included in the Authorization HTTP header. The key should...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found