"给出的证书无效"有效凭据错误(o-auth-provider)

时间:2017-11-20 05:07:11

标签: django oauth-2.0 django-rest-framework

我正在关注OAuth2提供程序教程。正确设置everthing后,我收到此错误。

Invalid Credentials given

我对请求做错了什么?我查看了我的用户名和密码,但它100%有效。

curl -X POST -d "grant_type=password&username=admin&password=j1357924680" 
-u"TEAfdIRw5cE664Pd4X31wuD7y08er8Suim3SdZsr:dI65CQwo9glm9LN63twmqDSY2DHR9bbPqlSEIwktaOzMfAS7sSFirzCKi9enogNZmyHjqQeIYIqtwKY6RIUC7Lto22s4vDtB0Y7F5unffLdktHXPyPn7j593IAeHfTDp" 
http://localhost:8000/o/token/

(如果您想查看其实际的源代码)https://github.com/jbaek7023/DRFOAuth2

OAuth2非常复杂

0 个答案:

没有答案
相关问题