Zend framework2 zend framework2 Zf-OAuth2问题

Zend framework2 zend framework2 Zf-OAuth2问题,zend-framework2,Zend Framework2,我正在尝试使用zf-oauth2模块来安装zendframework2 它似乎配置正确,但不幸的是,我没有得到确切的网址,我需要点击 我尝试调用URL,比如http-auth testclient:testpass-f POSThttp:///oauth grant\u type=client\u凭据,但它不起作用,因为我收到404错误响应。 所以,我只是想知道这是不是正确的URL,或者有没有其他的方法来称呼它 提前谢谢你的帮助 First make sure that you have ind

我正在尝试使用zf-oauth2模块来安装zendframework2 它似乎配置正确,但不幸的是,我没有得到确切的网址,我需要点击

我尝试调用URL,比如http-auth testclient:testpass-f POSThttp:///oauth grant\u type=client\u凭据,但它不起作用,因为我收到404错误响应。 所以,我只是想知道这是不是正确的URL,或者有没有其他的方法来称呼它

提前谢谢你的帮助

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