This app is mainly used to show logic how to implement OAuth 2 in Ruby on Rails.
The sample is tested on Ruby 2.4.2
The rails version is 5.1.4
Configuration and run
1.Update your OAuth 2 configuration value at OAuth2_RubyOnRails/OAuth2/config/config.yml file.
2.Update your Redirect URIs in your app.
2.Put the whole directory to your server, and run "rails server"
3.If you are using localhost, you can download ngrok at:https://ngrok.com/ and run "ngrok http 3000" (3000 is your port number)
- open a browser and go to the rail server host.