Giter Site home page Giter Site logo

omniauth-beddit's Introduction

OmniAuth Beddit

OmniAuth strategy for the Beddit Pro API v2 using the OAuth 2.0 protocol.

NOTE Development of this gem is currently halted as the Beddit Pro API is not available any longer. I plan to continue development once Beddit's API is made available again.

Prerequisites

The omniauth-beddit gem is dependent on the following gems. These are defined in omniauth-beddit.gempsec as runtime dependencies.

Installation

Add the strategy to your application's Gemfile with the following lines.

# Use Omniauth for multi-provider authentication
gem 'omniauth'
# Use Omniauth-OAuth2 Omniauth strategy
gem 'omniauth-oauth2'
# Use Omniauth-Beddit Omniauth strategy
gem 'omniauth-beddit'

Run bundle install from the command line (i.e. Terminal or Command Prompt).

$ bundle install

Alternatively, you may choose to install the gems manually by running the following commands from the command line (i.e. Terminal or Command Prompt).

$ gem install omniauth
$ gem install omniauth-oauth2
$ gem install omniauth-beddit

Usage

gem 'omniauth'
gem 'omniauth-oauth2'
gem 'omniauth-beddit'

If using Rails, define the stategy in it's middleware by creating an omniauth.rb file in the 'config/initializers' directory and adding the following line.

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :beddit, ENV['BEDDIT_API_KEY'], ENV['BEDDIT_API_SECRET']
end

If using another framework, consult it's documentation to define the strategy it it's middleware and then add the following line.

use OmniAuth::Builder do
  provider :beddit, ENV['BEDDIT_API_KEY'], ENV['BEDDIT_API_SECRET']
end

Contributing

Feel free to fork and patch this project. Contributions are not only welcome but invited!

License

MIT

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.