ikaras / yii2-oauth2-rest-template

Yii2 Rest APi Template with OAuth2 server
MIT License
95 stars 27 forks source link

Please ,I can't requst "oauth2/token" #5

Closed yedong0839 closed 9 years ago

yedong0839 commented 9 years ago

when request "oauth2/token" ,it responses "Client credentials were not found in the headers or body"

ikaras commented 9 years ago

How did you do the request? Over curl, POSTMAN or anything else? Seems like you didn't send data like:

{
  "grant_type":"password",
  "username":"admin@api.loc",
  "password":"123123123",
  "client_id":"testclient",
  "client_secret":"testpass"
}
yedong0839 commented 9 years ago

@ikaras thank you very much

3880955 commented 1 year ago

谢谢,这里我起码被 卡了两天,消耗了大量时间,感谢!

3880955 commented 1 year ago

How did you do the request? Over curl, POSTMAN or anything else? Seems like you didn't send data like:

{
  "grant_type":"password",
  "username":"admin@api.loc",
  "password":"123123123",
  "client_id":"testclient",
  "client_secret":"testpass"
}

thankyou so much!