zend framework2 Zf-OAuth2问题

时间:2014-12-09 05:03:34

标签: zend-framework2

我正在尝试使用zf-oauth2模块来安装zendframework2 (https://github.com/zfcampus/zf-oauth2)它似乎配置正确但不幸的是我没有得到我需要点击的确切网址。

我尝试调用URL如http --auth testclient:testpass -f POST http:/// oauth grant_type = client_credentials但它没有工作,因为我在响应中收到404错误。 所以,如果这是正确的URL,我只是在徘徊,或者是否有任何其他方式来调用它。

提前感谢您的帮助。

1 个答案:

答案 0 :(得分:0)

First make sure that you have indeed enabled the oauth module 'ZF\OAuth2'.
then use this Url
http --auth testclient:testpass -f POST http://yourapp.domain.com/oauth grant_type=client_credentials
This all assumes that you have testclient registered with testpass
If you have follwed correctly but still having problems please post your config
相关问题