Thursday, April 30, 2015

django oauth2 create user with encrypted password

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=foo1@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

--
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/cd1666cd-6aa1-4a12-ada2-ae306458c73b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment