zfcampus / zf-oauth2

OAuth2 server module for ZF2
BSD 3-Clause "New" or "Revised" License
104 stars 92 forks source link

Documentation missing #22

Closed elmosgot closed 10 years ago

elmosgot commented 10 years ago

Thanks for this great module, I just wanted to pin out 2 important things that were mssing in the documentation. At least it took me a while to find the missing pieces. Please can you add how to enable the modules:

config\application.config.php 'modules' => array( ... 'ZF\ApiProblem', 'ZF\ContentNegotiation', 'ZF\OAuth2' ),

Also it would have been nice if you had a curl example. It took me also some time to convert the httpie command into curl, could have been me, but it would be nice to have both options:

Here is the one I created: curl -i -X POST --user testclient:testpass --data "grant_type=client_credentials" http:///oauth

Anyway thanks a lot

brettmc commented 10 years ago

+1, I was lost until I found this issue - it wasn't clear from the documentation how to enable the oauth2 module, and the above worked for me.