No commit activity in last 3 years
No release in over 3 years
OmniAuth strategy for authenticating with Concur's OAuth2 API
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 Concur Strategy

This gem is an OmniAuth 2.0+ Strategy for the Concur API.

This gem has only been tested with Concur's Web Flow. If you are using one of their other flow's, feel free to submit a pull request with any changes that are needed.

Usage

Add the strategy to your Gemfile:

gem 'omniauth-concur-oauth2'

Then integrate the strategy into your middleware:

use OmniAuth::Builder do
  provider :concur, 'consumer_key', 'consumer_secret', { scope: "LIST_OFF_APIS", callback_path: "/auth/concur/callback" }
end

In Rails, create a new file under config/initializers called omniauth.rb to plug the strategy into your middleware stack.

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :Concur, 'consumer_key', 'consumer_secret', { scope: "LIST_OFF_APIS", callback_path: "/auth/concur/callback" }
end

You must have a consumer key and secret, which are created when you register your Partner Application.

For additional information about OmniAuth, visit OmniAuth wiki.

License

See License for details.