django oauth2 create user with encrypted password

21 views
Skip to first unread message

Shekar Tippur

unread,
Apr 30, 2015, 7:08:05 AM4/30/15
to django...@googlegroups.com
Hello,

I am trying to create user using django-oauth-toolkit module. I am follwing instructions under https://django-oauth-toolkit.readthedocs.org/en/latest/rest-framework/getting_started.html
I am able to create a user using basic curl

curl -H "Authorization: Bearer lXbYKZqnPeqOyYaHyB3EOAvcMny13j" -X POST -d"username=foo1&password=bar1&first_name=foo1&email=fo...@screens.com" http://${endpoint}/users/

However, the password is stored as clear text. As a result, I am not able to get a user token to do further api calls.

I have a workaround where I go in as admin via the console and go to the specific user and recreate the password. As you can see, this is not scalable. I am sure I am missing something here.

Appreciate if someone could unblock me.

- Shekar

Reply all
Reply to author
Forward
0 new messages