[Answer]-Django rest framework OAuth2 Toolkit

1👍

Do you have the right secret and id and/or the right grant-type?

1) Go to <yoursite>/admin and login with your admin account

2) Go to <yoursite>/o/applications and choose your application

Now you can see your secret, id and grant type(should be ‘password’).
Also have a look at the client type(should be ‘confidential’)

👤Lee

0👍

Thank you fo your help I solve my problem. My right curl request is bellow:

curl -X POST -d "grant_type=password&username=USERNAME&password=PASSWORD" --user "CLIENT_ID:CLIENT_SECRET" 
👤angel

Leave a comment