Thursday, April 30, 2015

django oauth2 create user with encrypted password


I am trying to create user using django-oauth-toolkit module. I am follwing instructions under
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&" 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

You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment