【问题标题】:zend framework2 Zf-OAuth2 issuezend framework2 Zf-OAuth2 问题
【发布时间】:2014-12-09 05:03:34
【问题描述】:

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

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

提前感谢您的帮助。

【问题讨论】:

    标签: zend-framework2


    【解决方案1】:
    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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-04
      • 2011-07-15
      • 1970-01-01
      • 2014-03-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多