Skip to content

Instantly share code, notes, and snippets.

@zhangyuxiu
zhangyuxiu / authorization_request_sample.rb
Created Nov 28, 2012 — forked from nov/authorization_request_sample.rb
Rack::OAuth2::Client Sample - Authorization Request
View authorization_request_sample.rb
require 'rubygems'
require 'rack/oauth2'
client = Rack::OAuth2::Client.new(
:identifier => YOUR_CLIENT_ID,
:secret => YOUR_CLIENT_SECRET,
:redirect_uri => YOUR_REDIRECT_URI, # only required for grant_type = :code
:host => 'rack-oauth2-sample.heroku.com'
)
You can’t perform that action at this time.