No description, website, or topics provided.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
Gemfile
LICENSE.txt
README.md
Rakefile
omniauth-socialcast-oauth2.gemspec

README.md

Omniauth - Socialcast Oauth2

omniauth-socialcast-oauth2 is a gem based on omniauth-oauth2 which helps you integrate your application with Socialcast using oauth

Installation

Add this line to your application's Gemfile:

gem 'omniauth-socialcast-oauth2'

And then execute:

$ bundle

Or install it yourself as:

$ gem install omniauth-socialcast-oauth2

Usage

Example usage in a rails application

This code block has to be added in the omniauth.rb file in initializers folder

require 'omniauth'
require 'omniauth-socialcast-oauth2'

Rails.application.config.middleware.use OmniAuth::Builder do
  #Please make sure to substitute the :site option
  provider Omniauth::Strategies::Socialcast, 
  ENV['CLIENTID'], ENV['CLIENTSECRET'], :client_options => {:site => "https://demo.socialcast.com"}
end

The application authentication url is handled at http://www.yourrailsapp.com/auth/socialcast and the callback url is http://www.yourrailsapp.com/auth/callback.

Please ask the site administrator to enter the redirect url while registering the app.

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