A sample project that integrates grape and rack-oauth2
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
config
public
spec
.gitignore
.pryrc
.rspec
.rubocop.yml
.ruby-gemset
.ruby-version
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

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