Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/naveed-ahmad/omniauth-smashrun

OmniAuth strategy for Smashrun.
https://github.com/naveed-ahmad/omniauth-smashrun

omniauth-strategy smashrun

Last synced: about 1 month ago
JSON representation

OmniAuth strategy for Smashrun.

Awesome Lists containing this project

README

        

[![Gem Version](https://badge.fury.io/rb/omniauth-smashrun.svg)](https://badge.fury.io/rb/omniauth-smashrun)

# Omniauth::Strategies::Smashrun
Omniauth strategy for Smashrun ( https://api.smashrun.com/v1/documentation )

## Installation

Add this line to your application's Gemfile:

gem 'omniauth-smashrun'

And then execute:

$ bundle

Or install it yourself as:

$ gem install omniauth-smashrun

## Usage

Register **Smashrun Strategy** in omniauth configuration file(config/initializers/omniauth.rb)

```ruby
Rails.application.config.middleware.use OmniAuth::Builder do
provider :smashrun, 'client id', 'client secret'
end
```

Use [Smasrun clinet gem](https://github.com/naveed-ahmad/smashrun) for consuming smashrun api

## License

[MIT License](http://www.opensource.org/licenses/mit-license.php)