manosim / django-rest-framework-api-key

An extra layer of authentication for Web APIs made with Django REST Framework
BSD 2-Clause "Simplified" License
92 stars 30 forks source link

How do I get the key once it is generated? #6

Closed tahmidkhan closed 7 years ago

tahmidkhan commented 7 years ago

I am not sure if this is included somewhere, but after creating an API key from the admin panel, how do I actually get the key so that I can put it in my headers? Its always hidden for me.

manosim commented 7 years ago

Hello @tahmidkhan once you click save (when creating a key) it will show up in the next page, above the "Success" message. If you missed it, you can still access it from the database or running the django shell command(import the library, select the model etc). I am attaching a screenshot - hope it helps!

screen shot 2017-01-03 at 18 32 37

tahmidkhan commented 7 years ago

@manosim Oh good stuff, now I got it. I missed the message popping up. Thanks a lot, this is really helpful.