A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/XeroAPI/xero-oauth2-omniauth-sample below:

XeroAPI/xero-oauth2-omniauth-sample: A Ruby on Rails sample application to demonstrate the usage of xero-oauth2-omniauth ruby gem.

Xero Ruby Oauth 2 Demo Rails Application

This rails application demonstates how omniauth-xero-oauth2 gem can be used to interface with Xero OAuth2 API.

A quick demo of the app:

ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-darwin18]
Rails 5.2.3

Create a .env in the root of your project directory or replace the env.sample

CLIENT_ID=...
CLIENT_SECRET=...
SCOPES=...

Notice that there is no redirect_uri specified here. By default omniauth uses /auth/xero_oauth2/callback.

You can use your own callback url by adding redirect_uri: 'https://your.apps/callback/url' to provider() function's input.

Update local omniauth dependency in Gemfile:

gem 'omniauth-xero-oauth2', :path => '../omniauth-xero-oauth2' # as a local gem

Run follow commands to start up the application:

$ bundle install 
$ rake db:migrate
$ rails start

Uses sqlite3. This is defaulted by rails application.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4