• Stars
    star
    250
  • Rank 162,397 (Top 4 %)
  • Language
    Ruby
  • License
    MIT License
  • Created almost 14 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A devise Omniauth server which handles Single Sign On

Single Sign-On using Devise and OmniauthΒΆ ↑

We wanted to solve these problems:

  • A single User Manager application (which will authenticate ALL users with different roles)

  • Different internal applications which talk to User Manager for authentication

  • User should be able to login/sign-up via Social Networks like Twitter and Facebook.

  • Single Sign On between all applications.

The Custom ProviderΒΆ ↑

This custom provider acts as an omniauth client (to connect to Twitter & Facebook) AND also acts as a omniauth provider (via auth_controller) to authenticate internal applications.

UsageΒΆ ↑

Clone this repository and do a bundle install. NOTE: We are using devise master HEAD because it has the latest omniauth integration code.

git clone git://github.com/joshsoftware/sso-devise-omniauth-provider.git
bundle install
rake db:create
rake db:migrate

Create your Twitter App and Facebook App. Create the initializer file with the following omniauth configuration:( eg. I use config/initializers/omniauth.rb )

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :twitter, 'twitter-appid', 'twitter-app-secret'
  provider :facebook, 'facebook-appid', 'facebook-app-secret'
end

That’s it! Your on your way:

rails server

In your browser, go for it:

http://localhost:3000

ContributionsΒΆ ↑

Please feel free to enhance this demo. For any doubts, please send an email to [email protected]

I am eager to write some rspec for this setup. If you do, please send me a pull request!

LicenseΒΆ ↑

This is released under the MIT license.

More Repositories

1

sso-devise-omniauth-client

Single Sign On Client for Custom Devise & Omniauth setup
Ruby
137
star
2

tapit

Tapit is a Dancing Game built using express, Redis pubsub and socket.io!
JavaScript
113
star
3

code-curiosity

Open-source is now fun and rewarding!
Ruby
85
star
4

flutter-boilerplate

Dart
48
star
5

ejosh

eJosh our own custom CMS and Website Management product
JavaScript
29
star
6

feather_cms

Feather CMS is a lightweight CMS
JavaScript
20
star
7

Splat

SPlat is an integration platform to make use of SMS integration really easy.
Ruby
16
star
8

website

Our website.
JavaScript
13
star
9

mongo_geo_demo

Mongoid + Mongoid_geo demo
Ruby
12
star
10

curem

A light weight Go CRM with jsonapi support
Go
10
star
11

peerly

PeerLy is a peer-reward and recognition system with high-5's. (hi5)
Go
9
star
12

golang-boilerplate

a simple golang boilerplate to kickstart any go api project
Go
7
star
13

mailit

Our own custom mass-mailer software
Ruby
7
star
14

leave_management

Ruby
5
star
15

go-e-commerce

Backend Go code for e-commerce site
Go
4
star
16

khoj

Ruby gem client for Elastic Search as SaaS
Ruby
3
star
17

sso-gigya-widget

Single Sign On using Gigya Register widgets
Ruby
3
star
18

employee_management

Ruby
2
star
19

minion-api

This is the API server for the Minion observability platform.
Crystal
2
star
20

gharpay

GharPay - a gem for managing Cash on Delivery for GharPay service
Ruby
2
star
21

lightair

Newsletter Management
Ruby
2
star
22

nlg

Natural Language Generation in Ruby
Ruby
2
star
23

minion-streamserver

The Minion Streamserver collects and coordinates communications with the Minion Agents, and stores those communications in a persistent data store.
Crystal
2
star
24

minion-agent

Minion helps you manage your compute resources, wherever they may be. This repository contains the Minion Agent. This agent runs on remote compute instances, collecting information and relaying it to the Minion StreamServer while also providing an access controlled gateway that lets the resource owner manage the resource from the Minion UI.
Crystal
2
star
25

radiant_session_management

Tracts user session, ip and location
1
star
26

FACET_BackEnd

API Testing tool in Python
Python
1
star
27

khoj_registration

User registration for elasticsearch as SaaS
Ruby
1
star
28

cloudsearch

Gem for AWS cloud search
Ruby
1
star
29

wcagspider

Crystal
1
star
30

rubyconfindia

CMS for Ruby conf india using locomotive
JavaScript
1
star
31

OnCoT-API

Ruby
1
star
32

upasthit-mobile

Repo for mobile app code for Upasthit
Kotlin
1
star
33

puneruby

Ruby
1
star
34

contributors

git open repository contributors
Ruby
1
star
35

donation_management

Ruby
1
star
36

code-sense

realtime chat and presentation using nodjs
JavaScript
1
star
37

discover_excellence

Ruby
1
star
38

minion-common

Common code
Crystal
1
star
39

profile_builder_backend_py

Python
1
star
40

function_junction_ui

Event management
JavaScript
1
star