Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A demo app for omniauth with authlogic

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

OmniAuth with Authlogic demo

Omniauth is a pretty simple solution if you want your users to authenticate using oauth and openid providers. Here I am using authlogic to manage the user sessions and omniauth to do the external authentication.

Set up

I have tested this with rails 2.3.11 (rails 2.3.8 gives some issues, sorry can't remember which)

Unfortunately omniauth doesn't support 2.3.x (according to this omniauth/issues/244#issuecomment-1055851 ), but there are some workarounds which I have added, refer changelog

gem install bundler
git clone git://github.com/madhums/omniauth-authlogic-demo.git
bundle install
rake db:migrate
script/server

Important : Dont forget to replace your oauth,openid keys and secret in config/initializers/omniauth.rb.

The demo app is at http://omniauth-authlogic-demo.heroku.com/signin

In the demo app, after authenticating, in the edit profile, you can associate multiple providers with your account.

Changelog

Something went wrong with that request. Please try again.