Reputation: 15464
I need to make mobile app using sencha as client and django as server
I am sending request as follows to server
url: 'http://localhost:8000/api/user/?format=jsonp',
method: 'GET',
headers : {'Authorization' : CryptoJS.HmacSHA256("password", "1154590211545902"),'Content-Type':'application/json;charset=utf-8'
}
I need to query request.META.get('HTTP_AUTHORIZATION') with the password in the database.
request.META.get('HTTP_AUTHORIZATION') return encrypted value for the password like ea121221rtrtrt7878237878787 which is irreversible
Any ideas? Thank you
Upvotes: 1
Views: 2558
Reputation: 7740
Upvotes: 2
Reputation: 599600
Assuming you're using the built-in authentication framework, this is fully documented: Manually checking a user's password.
Upvotes: 1