Comments (3)
Hi. Current hawkrest does not support this. A good patch for this feature would probably be one that follows the Django convention of a callback, like:
HAWK_CREDENTIALS = 'import.path.to.callable'
where callable(id)
would return a credentials dict or something like that. There is also a django function to resolve callable paths that you could use.
from hawkrest.
There is a patch in the works for this: #5
from hawkrest.
This feature was added in #5 and here's the documentation on it: http://hawkrest.readthedocs.org/en/latest/usage.html
from hawkrest.
Related Issues (20)
- How to handle django User authentication, REST Framework throttling, etc? HOT 1
- AttributeError: 'DummyUser' object has no attribute 'is_authenticated'
- Exact Hawk errors are sent to the client with 401 responses
- 'Hawk authentication failed' responses to the client are hard to debug HOT 10
- Document logging
- Provide wheel distribution on PyPI HOT 1
- Create a new release that includes #16 HOT 1
- Add support for Django 1.9 HOT 1
- Make is_authenticated() and is_anonymous() attributes for Django 1.10 compatibility
- Retriggers of master are failing on Travis HOT 4
- Add testing against Django 1.10+ and django-rest-framework 3.4+
- TestHawkAuthenticatedUser.test_method_compliance failing under Django 1.10 HOT 2
- AttributeError: type object 'BaseCommand' has no attribute 'option_list'
- Remove SKIP_HAWK_AUTH
- Authentication backend and middleware use different strings to check if Hawk request HOT 1
- Middleware Not Compaitible with Django 1.11.5 final HOT 7
- Use end-to-end middleware tests HOT 1
- Verification tool issues HOT 1
- Error when there is no content-type available (e.g. DELETE requests). HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hawkrest.