Code Monkey home page Code Monkey logo

omniauth-concur-oauth2's Introduction

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.

omniauth-concur-oauth2's People

Contributors

adambedford avatar ascot21 avatar sdeframond avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.