OmniAuth strategy for Xero partner applications.
Add this line to your application's Gemfile:
gem 'omniauth-xero', github: 'cushion/omniauth-xero'
And then execute:
$ bundle
- Register a public application on the Xero developer portal.
- Become a Xero partner.
- 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
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
.
Bug reports and pull requests are welcome on GitHub at https://github.com/cushion/omniauth-xero.
The gem is available as open source under the terms of the MIT License.