• Stars
    star
    307
  • Rank 132,265 (Top 3 %)
  • Language
    Ruby
  • License
    MIT License
  • Created almost 16 years ago
  • Updated over 1 year ago

Reviews

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

Repository Details

OAuth implementation for Ruby. Note official maintained version is now at http://github.com/mojodna/oauth

Ruby OAuthยถ โ†‘

Whatยถ โ†‘

This is a RubyGem for implementing both OAuth clients and servers in Ruby applications.

See the OAuth specs oauth.net/core/1.0/

Installingยถ โ†‘

sudo gem install oauth

The source code is now hosted on the OAuth GitHub Project github.com/oauth/oauth-ruby

The basicsยถ โ†‘

This is a ruby library which is intended to be used in creating Ruby Consumer and Service Provider applications. It is NOT a Rails plugin, but could easily be used for the foundation for such a Rails plugin.

As a matter of fact it has been pulled out from an OAuth Rails Plugin code.google.com/p/oauth-plugin/ which now requires this GEM.

Demonstration of usageยถ โ†‘

Create a new consumer instance by passing it a configuration hash:

@consumer = OAuth::Consumer.new("key","secret", :site => "https://agree2")

Start the process by requesting a token

@request_token = @consumer.get_request_token
session[:request_token] = @request_token
redirect_to @request_token.authorize_url

When user returns create an access_token

@access_token = @request_token.get_access_token
@photos = @access_token.get('/photos.xml')

Now that you have an access token, you can use Typhoeus to interact with the OAuth provider if you choose.

oauth_params = {:consumer => oauth_consumer, :token => access_token}
hydra = Typhoeus::Hydra.new
req = Typhoeus::Request.new(uri, options) 
oauth_helper = OAuth::Client::Helper.new(req, oauth_params.merge(:request_uri => uri))
req.headers.merge!({"Authorization" => oauth_helper.header}) # Signs the request
hydra.queue(req)
hydra.run
@response = req.response

More Informationยถ โ†‘

How to submit patchesยถ โ†‘

The source code is now hosted on the OAuth GitHub Project github.com/oauth/oauth-ruby

To submit a patch, please fork the oauth project and create a patch with tests. Once youโ€™re happy with it send a pull request and post a message to the google group.

Licenseยถ โ†‘

This code is free to use under the terms of the MIT license.

Contactยถ โ†‘

OAuth Ruby has been created and maintained by a large number of talented individuals. The current maintainer is Aaron Quint (quirkey).

Comments are welcome. Send an email to via the OAuth Ruby mailing list groups.google.com/group/oauth-ruby

More Repositories

1

oauth-plugin

Rails plugin for OAuth
Ruby
717
star
2

cloth

Simple Ethereum library for Clojure(Script)
JavaScript
142
star
3

clauth

Authentication library for Clojure and Ring based on OAuth2
Clojure
117
star
4

portablecontacts

Portable Contacts client for Ruby
Ruby
70
star
5

bitcljoin

start of a clojure wrapper for bitcoinj
Clojure
47
star
6

oauthentic

Simple OAuth 2 client library for Clojure
Clojure
42
star
7

slugger

Slug generator for clojure
Java
41
star
8

ezcrypto

Easy Crypto for Ruby
Ruby
35
star
9

ruby-openid

JanRain's great ruby openid library now in git. Remember this is just an unmaintained mirror not the real thing. Submit patches follow instructions at below site.
Ruby
21
star
10

bux

Money and Currency manipulation in Clojure
Clojure
17
star
11

talk.org

Google AppEngine based Twitter like App
Python
16
star
12

clothereum

Native clojure library for Ethereum
Clojure
15
star
13

wideledger

Open Distributed Financial Reporting Specification
JavaScript
15
star
14

guard-jammit

Jammit plugin for Guard
Ruby
13
star
15

wf2csv

Converts Wells Fargo PDF statements to csv files
Ruby
11
star
16

solidterms

Adding human readable terms to Solidity contracts
JavaScript
11
star
17

bs-eth

Ethereum JSON-RPC wrapper for Bucklescript/ReasonML
OCaml
9
star
18

timecert_merb

Trusted third party timestamping service
Ruby
8
star
19

TimeCert

Trusted third party timestamping service
Ruby
6
star
20

oauthentic-demo

Demo web app of oauthentic the oauth2 library for Clojure authenticating towards GitHub.
Clojure
5
star
21

agree2-client

A client API for Agree2
Ruby
4
star
22

neuclear-ledger

Ledger library for Java
3
star
23

neuclear-signer

GUI Digitial Signature tool for NeuClear
2
star
24

neuclear-id

PKYP Infrastructure for Java
2
star
25

neuclear-ledger-prevayler

Ledger Implementation for Prevayler
2
star
26

neuclear-ledger-hibernate

Ledger Implementation for Hibernate
2
star
27

neuclear-pay

Java library for NeuClear Payment System
2
star
28

neuclear-commons

Common Crypto Utilities
2
star
29

neuclear-ledger-sql

Ledger Implementation for plain mysql
2
star
30

neuclear-xmlsig

XML Signature Library for Java
2
star
31

cucumber_rails_debug

A set of debug steps for cucumber
Ruby
1
star
32

secretshare

Shamir Secret Sharing for Clojure based on secretsharejava
Clojure
1
star