Revision d994d118 aai/middleware.py
b/aai/middleware.py | ||
---|---|---|
12 | 12 |
auth_key = "X-Auth-Key" |
13 | 13 |
|
14 | 14 |
def process_request(self, request): |
15 |
request.META['HTTP_X_AUTH_TOKEN'] = '46e427d657b20defe352804f0eb6f8a2' |
|
15 |
if not request.path.startswith('/api/') : |
|
16 |
#print time.strftime("[%d/%b/%Y %H:%M:%S]"), " Path", \ |
|
17 |
# request.path , ": Not authenticated" |
|
18 |
return |
|
16 | 19 |
token = request.META.get('HTTP_X_AUTH_TOKEN', None) |
17 | 20 |
if token: |
18 | 21 |
user = None |
Also available in: Unified diff