Skip to content

OmniAuth strategy for Xero partner applications

License

Notifications You must be signed in to change notification settings

bluefrogsoftware/omniauth-xero

 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 98.4%
  • Shell 1.6%