No release in over a year
Intuit strategy for OmniAuth Oauth2.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

omniauth-intuit-oauth2

This gem contains the Intuit strategy for OmniAuth 2.0

Installation

Usage is similar to many other OmniAuth 2.0 strategies. So let's say you're using Rails, you need to add the strategy to your Gemfile along side omniauth:

Add this gem to your application's Gemfile:

gem 'omniauth'
gem 'omniauth-intuit-oauth2'

Then bundle install

Getting Started

You will get your consumer key and secret when you register your app with Intuit Anywhere. To begin the setup process with Intuit Develeoper visit: https://developer.intuit.com/app/developer/qbo/docs/develop/authentication-and-authorization/oauth-2.0

How To Use It

Next, you need to add the following to your config/initializers/omniauth.rb:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :intuit, "consumer_key", "consumer_secret", mode: :sandbox, scope: "openid"
end

Mode:

Mode is either :production or :sandbox as per the Intuit Developer docs: https://developer.intuit.com/app/developer/qbo/docs/develop/sdks-and-samples-collections/nodejs/oauth-nodejs-client#require-the-client

Scope

Information on scopes can be found: https://developer.intuit.com/app/developer/qbo/docs/learn/scopes

OmniAuth2

You can now follow the OmniAuth README at: https://github.com/omniauth/omniauth-oauth2

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request