I don't know how to use and test the client sample. In order to exec the example above, I must have the consts: YOUR_CLIENT_ID,YOUR_CLIENT_SECRET and so on. But where should I register and get the values.
@zhangyuxiu You need a OAuth 2.0 provider, which can be built by rack-oauth2 or any other OAuth2 provider libraries. For example, you can use the Doorkeeper or devise_oauth2_providable.
I must be missing something here; isn't rack-oauth2-sample.heroku.com meant to be an OAuth 2.0 provider? How do we use this example client code with that reference implementation using the rack-oauth2 library?