dylanwolff / omniauth-xero

OmniAuth strategy for Xero partner applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OmniAuth::Xero

OmniAuth strategy for Xero partner applications.

Installation

Add this line to your application's Gemfile:

gem 'omniauth-xero', github: 'cushion/omniauth-xero'

And then execute:

$ bundle

Usage

  1. Register a public application on the Xero developer portal.
  2. Become a Xero partner.
  3. Add Xero as an OmniAuth provider:
use OmniAuth::Builder do
  provider :xero,
    ENV['XERO_CLIENT_ID'],
    ENV['XERO_CLIENT_SECRET'],
    private_key_file: '/path/to/privatekey.pem'
end

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/cushion/omniauth-xero.

License

The gem is available as open source under the terms of the MIT License.

About

OmniAuth strategy for Xero partner applications

License:MIT License


Languages

Language:Ruby 98.4%Language:Shell 1.6%