Skip to content

utkarsh2102/ruby-openid

This branch is 3 commits behind openid/ruby-openid:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Tobias Haagen Michaelsen
Oct 4, 2019
65963ca · Oct 4, 2019
Feb 25, 2017
Feb 16, 2010
Mar 16, 2019
Oct 4, 2019
Mar 16, 2019
Jun 22, 2012
Mar 6, 2019
Sep 17, 2019
Jul 7, 2012
Jun 5, 2008
Nov 9, 2014
Mar 16, 2019
Jun 27, 2008
Mar 16, 2010
Apr 30, 2019
Jun 22, 2012
Jul 7, 2012
Jul 31, 2019
Nov 9, 2014

Repository files navigation

Ruby OpenID

A Ruby library for verifying and serving OpenID identities.

Build Status

Features

  • Easy to use API for verifying OpenID identites - OpenID::Consumer
  • Support for serving OpenID identites - OpenID::Server
  • Does not depend on underlying web framework
  • Supports multiple storage mechanisms (Filesystem, ActiveRecord, Memory)
  • Example code to help you get started, including:
    • Ruby on Rails based consumer and server
    • OpenIDLoginGenerator for quickly getting creating a rails app that uses OpenID for authentication
    • ActiveRecordOpenIDStore plugin
  • Comprehensive test suite
  • Supports both OpenID 1 and OpenID 2 transparently

Installing

Before running the examples or writing your own code you'll need to install the library. See the INSTALL file or use rubygems:

gem install ruby-openid

Check the installation:

$ irb
irb> require 'rubygems'
=> false
irb> gem 'ruby-openid'
=> true

The library is known to work with Ruby 1.9.2 and above on Unix, Max OS X and Win32.

Getting Started

The best way to start is to look at the rails_openid example. You can run it with:

cd examples/rails_openid
script/server

If you are writing an OpenID Relying Party, a good place to start is: examples/rails_openid/app/controllers/consumer_controller.rb

And if you are writing an OpenID provider: examples/rails_openid/app/controllers/server_controller.rb

The library code is quite well documented, so don't be squeamish, and look at the library itself if there's anything you don't understand in the examples.

Homepage

Community

Discussion regarding the Ruby OpenID library and other JanRain OpenID libraries takes place on the OpenID mailing list.

Please join this list to discuss, ask implementation questions, report bugs, etc. Also check out the openid channel on the freenode IRC network.

If you have a bugfix or feature you'd like to contribute, don't hesitate to send it to us: How to contribute.

Author

Copyright 2006-2012, JanRain, Inc.

Contact openid@janrain.com.

License

Apache Software License. For more information see the LICENSE file.

About

OpenID library for Ruby

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 99.3%
  • Other 0.7%