A sample project that integrates grape and rack-oauth2
JavaScript CSS Ruby
Latest commit 4b9dba0 Mar 25, 2014 @alexandru-calinoiu fixes specs

README.md

Client credentials

fail

curl -d '{"grant_type": "client_credentials", "client_id": "42"}' 'http://localhost:9292/api/v1/token' -H Content-Type:application/json -v

success

curl -d '{"grant_type": "client_credentials", "client_id": "42", "client_secret": "secret"}' 'http://localhost:9292/api/v1/token' -H Content-Type:application/json -v