Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Simple Redis store for OpenID

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 openid-redis-store.gemspec
README.md

Redis Store for OpenID

This is a simple store for OpenID authentication.

Requirements

Requires ruby-openid, redis Ruby library and Redis 2.x.x.

Usage

Install the plugin, either by:

./script/plugin install git://github.com/dekart/openid-redis-store.git

Or with bundler, put this in your Gemfile:

gem "openid-redis-store"

Require the library via:

require 'openid_redis_store'

Set your OpenID store (for Rails put this to a new file in config/initializers):

# Initializing Redis client
redis_client = Redis.new(
  :host => "127.0.0.1",
  :port => "",
  :db   => 0
)

OpenIdAuthentication.store = OpenID::Store::Redis.new(redis_client)

Testing

No tests yet :( You can fork this plugin at GitHub (http://github.com/dekart/openid-redis-store) and add your own tests. I'll be happy to accept patches!

Credits

Written by Alex Dmitriev

Something went wrong with that request. Please try again.