Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eddanger/sinatra-oauth-provider
An experiment in creating an OAuth provider with Sinatra
https://github.com/eddanger/sinatra-oauth-provider
oauth-consumer oauth-provider ruby sinatra
Last synced: 27 days ago
JSON representation
An experiment in creating an OAuth provider with Sinatra
- Host: GitHub
- URL: https://github.com/eddanger/sinatra-oauth-provider
- Owner: eddanger
- License: mit
- Created: 2009-01-26T02:17:12.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2009-01-29T23:20:31.000Z (almost 16 years ago)
- Last Synced: 2024-04-15T13:55:43.793Z (8 months ago)
- Topics: oauth-consumer, oauth-provider, ruby, sinatra
- Language: Ruby
- Homepage:
- Size: 101 KB
- Stars: 56
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-sinatra - sinatra-oauth-provider - A Sinatra OAuth Provider. (Authentication)
README
Sinatra Rack Middleware OAuth Provider
===An experiment in creating a Sinatra OAuth Provider as Rack Middleware, a simple OAuth Consumer and API wrapper to tie it all together.
The Rack Middleware takes a simple hash of OAuth protected paths (represented by regular expressions) and associated request methods.
# To run the provider:
ruby provider.rb
Go to http://localhost:4567/# To run the consumer:
ruby consumer.rb -p 5678
Go to http://localhost:5678/
# Requirements and Installation**Sinatra: http://sinatra.github.com/**
sudo gem install sinatra
**Datamapper: http://datamapper.org/**
sudo gem install datamapper
sudo gem install do_sqlite3**OAuth for Ruby: http://github.com/pelle/oauth**
sudo gem install oauth
**OAuth Provider for Ruby: http://github.com/halorgium/oauth_provider**
Since there is no gem yet you will need to do the following:
cd lib
git clone git://github.com/halorgium/oauth_provider.gitThanks to pelle, halorgium (for the auth_provider), and singpolyma (for the simple Sinatra example)! And to the Vancouver "Ruby in the Rain" event for opening my eyes to Sinatra. You guys rock!
Enjoy!