• This repository has been archived on 24/Jul/2023
  • Stars
    star
    315
  • Rank 132,951 (Top 3 %)
  • Language
    Ruby
  • License
    Other
  • Created over 14 years ago
  • Updated about 3 years ago

Reviews

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

Repository Details

OpenID library for Ruby

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 [email protected].

License

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

More Repositories

1

AppAuth-Android

Android client SDK for communicating with OAuth 2.0 and OpenID Connect providers.
Java
2,848
star
2

AppAuth-iOS

iOS and macOS SDK for communicating with OAuth 2.0 and OpenID Connect providers.
Objective-C
1,758
star
3

AppAuth-JS

JavaScript client SDK for communicating with OAuth 2.0 and OpenID Connect providers.
TypeScript
982
star
4

php-openid

OpenID library for PHP5
PHP
755
star
5

python-openid

OpenID library for Python
Python
439
star
6

OpenYOLO-Android

Android protocol for credential exchange and update - "You Only Login Once"
Java
115
star
7

OpenYOLO-Web

Web protocol for credential exchange and update - "You Only Login Once"
TypeScript
100
star
8

OpenID4VCI

68
star
9

OpenID4VP

Python
53
star
10

sharedsignals

OpenID Shared Signals Working Group Repository
Makefile
50
star
11

authzen

Proposed standard for an Authorization API
TypeScript
36
star
12

oid4vc-haip-sd-jwt-vc

High Assurance Profile of OID4VP and OID4VCI using SD-JWT VC and mdocs that is privacy preserving, secure, and meets regulatory requirements
Makefile
29
star
13

accountchooser

Promotional website for Account Chooser.
22
star
14

connect-site

The OpenID Connect site.
PHP
13
star
15

openid.github.com

JavaScript
13
star
16

OpenYOLO-Spec

The markdown source of the OpenYOLO Specification
XSLT
11
star
17

SIOPv2

8
star
18

accountchooser.com

Source code for accountchooser.com, a project of the OIDF Account Chooser Working Group
JavaScript
8
star
19

federation

8
star
20

openid4vp_ble

HTML
7
star
21

php4-openid

OpenID library for PHP4
PHP
6
star
22

Contract-Exchange-Extension

The (draft) OpenID Contract Exchange Extension specification.
HTML
6
star
23

User-Experience-Extension

The (draft) OpenID User Experience Extension specification.
6
star
24

OpenID4VC_SecTrust

Makefile
5
star
25

jwtconnect.io

HTML
3
star
26

ipsie

OpenID IPSIE Working Group Repository
1
star