PhoneGap Build Oauth Client Demo
This rails app semos how to connect to PhoneGap Build using the Oauth flow. Its a more secure way of consuming our API than basic token auth.
- ruby 2
- rails 4
Register your app on PhoneGap Build. Enter the following for your app details:
- Main application url:
- Callback url
app/controllers/welcome_controller.rb and change these values that you obtained when you registered your app on Build:
bundle install rake db:setup
then go to http://localhost:3000 in Chrome.