filiptepper-oauth-plugin 0.3.11
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/CHANGELOG +101 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +376 -0
- data/Rakefile +38 -0
- data/VERSION +1 -0
- data/generators/oauth_consumer/USAGE +10 -0
- data/generators/oauth_consumer/oauth_consumer_generator.rb +50 -0
- data/generators/oauth_consumer/templates/consumer_token.rb +5 -0
- data/generators/oauth_consumer/templates/controller.rb +19 -0
- data/generators/oauth_consumer/templates/index.html.erb +29 -0
- data/generators/oauth_consumer/templates/index.html.haml +18 -0
- data/generators/oauth_consumer/templates/migration.rb +20 -0
- data/generators/oauth_consumer/templates/oauth_config.rb +41 -0
- data/generators/oauth_consumer/templates/show.html.erb +7 -0
- data/generators/oauth_consumer/templates/show.html.haml +8 -0
- data/generators/oauth_provider/USAGE +20 -0
- data/generators/oauth_provider/lib/insert_routes.rb +67 -0
- data/generators/oauth_provider/oauth_provider_generator.rb +125 -0
- data/generators/oauth_provider/templates/_form.html.erb +17 -0
- data/generators/oauth_provider/templates/_form.html.haml +21 -0
- data/generators/oauth_provider/templates/access_token.rb +16 -0
- data/generators/oauth_provider/templates/authorize.html.erb +14 -0
- data/generators/oauth_provider/templates/authorize.html.haml +16 -0
- data/generators/oauth_provider/templates/authorize_failure.html.erb +1 -0
- data/generators/oauth_provider/templates/authorize_failure.html.haml +1 -0
- data/generators/oauth_provider/templates/authorize_success.html.erb +1 -0
- data/generators/oauth_provider/templates/authorize_success.html.haml +1 -0
- data/generators/oauth_provider/templates/client_application.rb +55 -0
- data/generators/oauth_provider/templates/client_application_spec.rb +29 -0
- data/generators/oauth_provider/templates/client_application_test.rb +42 -0
- data/generators/oauth_provider/templates/client_applications.yml +23 -0
- data/generators/oauth_provider/templates/clients_controller.rb +52 -0
- data/generators/oauth_provider/templates/clients_controller_spec.rb +239 -0
- data/generators/oauth_provider/templates/clients_controller_test.rb +280 -0
- data/generators/oauth_provider/templates/controller.rb +11 -0
- data/generators/oauth_provider/templates/controller_spec.rb +367 -0
- data/generators/oauth_provider/templates/controller_spec_helper.rb +80 -0
- data/generators/oauth_provider/templates/controller_test.rb +310 -0
- data/generators/oauth_provider/templates/controller_test_helper.rb +115 -0
- data/generators/oauth_provider/templates/edit.html.erb +7 -0
- data/generators/oauth_provider/templates/edit.html.haml +4 -0
- data/generators/oauth_provider/templates/index.html.erb +43 -0
- data/generators/oauth_provider/templates/index.html.haml +39 -0
- data/generators/oauth_provider/templates/migration.rb +46 -0
- data/generators/oauth_provider/templates/new.html.erb +5 -0
- data/generators/oauth_provider/templates/new.html.haml +5 -0
- data/generators/oauth_provider/templates/oauth_nonce.rb +13 -0
- data/generators/oauth_provider/templates/oauth_nonce_spec.rb +24 -0
- data/generators/oauth_provider/templates/oauth_nonce_test.rb +26 -0
- data/generators/oauth_provider/templates/oauth_nonces.yml +13 -0
- data/generators/oauth_provider/templates/oauth_token.rb +31 -0
- data/generators/oauth_provider/templates/oauth_token_spec.rb +309 -0
- data/generators/oauth_provider/templates/oauth_token_test.rb +57 -0
- data/generators/oauth_provider/templates/oauth_tokens.yml +17 -0
- data/generators/oauth_provider/templates/request_token.rb +40 -0
- data/generators/oauth_provider/templates/show.html.erb +27 -0
- data/generators/oauth_provider/templates/show.html.haml +30 -0
- data/init.rb +1 -0
- data/install.rb +2 -0
- data/lib/oauth-plugin.rb +1 -0
- data/lib/oauth/controllers/application_controller_methods.rb +110 -0
- data/lib/oauth/controllers/consumer_controller.rb +76 -0
- data/lib/oauth/controllers/provider_controller.rb +111 -0
- data/lib/oauth/models/consumers/service_loader.rb +18 -0
- data/lib/oauth/models/consumers/services/agree2_token.rb +15 -0
- data/lib/oauth/models/consumers/services/fireeagle_token.rb +39 -0
- data/lib/oauth/models/consumers/services/twitter_token.rb +18 -0
- data/lib/oauth/models/consumers/token.rb +60 -0
- data/oauth-plugin.gemspec +112 -0
- data/rails/init.rb +7 -0
- data/tasks/oauth_tasks.rake +4 -0
- data/uninstall.rb +1 -0
- metadata +136 -0
@@ -0,0 +1,18 @@
|
|
1
|
+
# Goes through the entries in your OAUTH_CREDENTIALS and either loads the class required
|
2
|
+
# or subclasses ConsumerToken with the name.
|
3
|
+
#
|
4
|
+
# So an entry called "my_service" will create a class MyServiceToken which you can
|
5
|
+
# connect with has_one to your user model.
|
6
|
+
if defined? ConsumerToken && defined? OAUTH_CREDENTIALS
|
7
|
+
OAUTH_CREDENTIALS.each do |key, value|
|
8
|
+
class_name=value[:class_name]||"#{key.to_s.classify}Token"
|
9
|
+
unless Object.const_defined?(class_name.to_sym)
|
10
|
+
if File.exists?(File.join(File.dirname(__FILE__), "services","#{key.to_s}_token.rb"))
|
11
|
+
require File.join(File.dirname(__FILE__), "services","#{key.to_s}_token")
|
12
|
+
else
|
13
|
+
super_class = value[:super_class]||"ConsumerToken"
|
14
|
+
eval "class #{class_name} < #{super_class} ;end"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'agree2'
|
2
|
+
class Agree2Token < ConsumerToken
|
3
|
+
AGREE2_SETTINGS={:site=>"https://agree2.com"}
|
4
|
+
def self.consumer
|
5
|
+
@consumer||=OAuth::Consumer.new credentials[:key],credentials[:secret],AGREE2_SETTINGS
|
6
|
+
end
|
7
|
+
|
8
|
+
def self.agree2_client
|
9
|
+
@agree2_client||=Agree2::Client.new credentials[:key],credentials[:secret]
|
10
|
+
end
|
11
|
+
|
12
|
+
def client
|
13
|
+
@client||=Agree2Token.agree2_client.user(token,secret)
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require 'fireeagle'
|
2
|
+
# For more information on FireEagle
|
3
|
+
# http://fireeagle.rubyforge.org/
|
4
|
+
class FireeagleToken < ConsumerToken
|
5
|
+
FIREEAGLE_SETTINGS={
|
6
|
+
:site=>"https://fireeagle.yahooapis.com",
|
7
|
+
:authorize_url=>"https://fireeagle.yahoo.net/oauth/authorize"}
|
8
|
+
|
9
|
+
def self.consumer
|
10
|
+
@consumer||=OAuth::Consumer.new credentials[:key],credentials[:secret],FIREEAGLE_SETTINGS
|
11
|
+
end
|
12
|
+
|
13
|
+
def client
|
14
|
+
@client||=FireEagle::Client.new :consumer_key => FireeagleToken.consumer.key,
|
15
|
+
:consumer_secret => FireeagleToken.consumer.secret,
|
16
|
+
:access_token => token,
|
17
|
+
:access_token_secret => secret
|
18
|
+
end
|
19
|
+
|
20
|
+
# Returns the FireEagle User object
|
21
|
+
# http://fireeagle.rubyforge.org/classes/FireEagle/User.html
|
22
|
+
def fireeagle_user
|
23
|
+
@fireeagle_user||=client.user
|
24
|
+
end
|
25
|
+
|
26
|
+
# gives you the best guess of a location for user.
|
27
|
+
# This returns the FireEagle Location object:
|
28
|
+
# http://fireeagle.rubyforge.org/classes/FireEagle/Location.html
|
29
|
+
def location
|
30
|
+
fireeagle_user.best_guess.name
|
31
|
+
end
|
32
|
+
|
33
|
+
# Updates thes users location
|
34
|
+
# see: http://fireeagle.rubyforge.org/classes/FireEagle/Client.html#M000026
|
35
|
+
def update_location(location={})
|
36
|
+
client.update(location)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
gem 'paulsingh-twitter' # go back to regular twitter gem when it is bumped to oauth 0.3.5
|
2
|
+
require 'twitter'
|
3
|
+
class TwitterToken < ConsumerToken
|
4
|
+
TWITTER_SETTINGS={:site=>"http://twitter.com"}
|
5
|
+
def self.consumer
|
6
|
+
@consumer||=OAuth::Consumer.new credentials[:key],credentials[:secret],TWITTER_SETTINGS
|
7
|
+
end
|
8
|
+
|
9
|
+
def client
|
10
|
+
unless @client
|
11
|
+
@twitter_oauth=Twitter::OAuth.new TwitterToken.consumer.key,TwitterToken.consumer.secret
|
12
|
+
@twitter_oauth.authorize_from_access token,secret
|
13
|
+
@client=Twitter::Base.new(@twitter_oauth)
|
14
|
+
end
|
15
|
+
|
16
|
+
@client
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
require 'oauth/consumer'
|
2
|
+
module Oauth
|
3
|
+
module Models
|
4
|
+
module Consumers
|
5
|
+
module Token
|
6
|
+
def self.included(model)
|
7
|
+
model.class_eval do
|
8
|
+
belongs_to :user
|
9
|
+
validates_presence_of :user, :token, :secret
|
10
|
+
end
|
11
|
+
|
12
|
+
model.send(:include, InstanceMethods)
|
13
|
+
model.send(:extend, ClassMethods)
|
14
|
+
|
15
|
+
end
|
16
|
+
|
17
|
+
module ClassMethods
|
18
|
+
|
19
|
+
def service_name
|
20
|
+
@service_name||=self.to_s.underscore.scan(/^(.*?)(_token)?$/)[0][0].to_sym
|
21
|
+
end
|
22
|
+
|
23
|
+
def consumer
|
24
|
+
@consumer||=OAuth::Consumer.new credentials[:key],credentials[:secret],credentials[:options]
|
25
|
+
end
|
26
|
+
|
27
|
+
def get_request_token(callback_url)
|
28
|
+
consumer.get_request_token(:oauth_callback=>callback_url)
|
29
|
+
end
|
30
|
+
|
31
|
+
def create_from_request_token(user,token,secret,oauth_verifier)
|
32
|
+
logger.info "create_from_request_token"
|
33
|
+
request_token=OAuth::RequestToken.new consumer,token,secret
|
34
|
+
access_token=request_token.get_access_token :oauth_verifier=>oauth_verifier
|
35
|
+
logger.info self.inspect
|
36
|
+
logger.info user.inspect
|
37
|
+
create :user_id=>user.id,:token=>access_token.token,:secret=>access_token.secret
|
38
|
+
end
|
39
|
+
|
40
|
+
protected
|
41
|
+
|
42
|
+
def credentials
|
43
|
+
@credentials||=OAUTH_CREDENTIALS[service_name]
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
|
48
|
+
module InstanceMethods
|
49
|
+
|
50
|
+
# Main client for interfacing with remote service. Override this to use
|
51
|
+
# preexisting library eg. Twitter gem.
|
52
|
+
def client
|
53
|
+
@client||=OAuth::AccessToken.new self.class.consumer,token,secret
|
54
|
+
end
|
55
|
+
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -0,0 +1,112 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{oauth-plugin}
|
8
|
+
s.version = "0.3.11"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Pelle Braendgaard", "Filip Tepper"]
|
12
|
+
s.date = %q{2009-09-21}
|
13
|
+
s.description = %q{Rails plugin for implementing an OAuth Provider or Consumer}
|
14
|
+
s.email = %q{oauth-ruby@googlegroups.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"README.rdoc"
|
17
|
+
]
|
18
|
+
s.files = [
|
19
|
+
".gitignore",
|
20
|
+
"CHANGELOG",
|
21
|
+
"MIT-LICENSE",
|
22
|
+
"README.rdoc",
|
23
|
+
"Rakefile",
|
24
|
+
"VERSION",
|
25
|
+
"generators/oauth_consumer/USAGE",
|
26
|
+
"generators/oauth_consumer/oauth_consumer_generator.rb",
|
27
|
+
"generators/oauth_consumer/templates/consumer_token.rb",
|
28
|
+
"generators/oauth_consumer/templates/controller.rb",
|
29
|
+
"generators/oauth_consumer/templates/index.html.erb",
|
30
|
+
"generators/oauth_consumer/templates/index.html.haml",
|
31
|
+
"generators/oauth_consumer/templates/migration.rb",
|
32
|
+
"generators/oauth_consumer/templates/oauth_config.rb",
|
33
|
+
"generators/oauth_consumer/templates/show.html.erb",
|
34
|
+
"generators/oauth_consumer/templates/show.html.haml",
|
35
|
+
"generators/oauth_provider/USAGE",
|
36
|
+
"generators/oauth_provider/lib/insert_routes.rb",
|
37
|
+
"generators/oauth_provider/oauth_provider_generator.rb",
|
38
|
+
"generators/oauth_provider/templates/_form.html.erb",
|
39
|
+
"generators/oauth_provider/templates/_form.html.haml",
|
40
|
+
"generators/oauth_provider/templates/access_token.rb",
|
41
|
+
"generators/oauth_provider/templates/authorize.html.erb",
|
42
|
+
"generators/oauth_provider/templates/authorize.html.haml",
|
43
|
+
"generators/oauth_provider/templates/authorize_failure.html.erb",
|
44
|
+
"generators/oauth_provider/templates/authorize_failure.html.haml",
|
45
|
+
"generators/oauth_provider/templates/authorize_success.html.erb",
|
46
|
+
"generators/oauth_provider/templates/authorize_success.html.haml",
|
47
|
+
"generators/oauth_provider/templates/client_application.rb",
|
48
|
+
"generators/oauth_provider/templates/client_application_spec.rb",
|
49
|
+
"generators/oauth_provider/templates/client_application_test.rb",
|
50
|
+
"generators/oauth_provider/templates/client_applications.yml",
|
51
|
+
"generators/oauth_provider/templates/clients_controller.rb",
|
52
|
+
"generators/oauth_provider/templates/clients_controller_spec.rb",
|
53
|
+
"generators/oauth_provider/templates/clients_controller_test.rb",
|
54
|
+
"generators/oauth_provider/templates/controller.rb",
|
55
|
+
"generators/oauth_provider/templates/controller_spec.rb",
|
56
|
+
"generators/oauth_provider/templates/controller_spec_helper.rb",
|
57
|
+
"generators/oauth_provider/templates/controller_test.rb",
|
58
|
+
"generators/oauth_provider/templates/controller_test_helper.rb",
|
59
|
+
"generators/oauth_provider/templates/edit.html.erb",
|
60
|
+
"generators/oauth_provider/templates/edit.html.haml",
|
61
|
+
"generators/oauth_provider/templates/index.html.erb",
|
62
|
+
"generators/oauth_provider/templates/index.html.haml",
|
63
|
+
"generators/oauth_provider/templates/migration.rb",
|
64
|
+
"generators/oauth_provider/templates/new.html.erb",
|
65
|
+
"generators/oauth_provider/templates/new.html.haml",
|
66
|
+
"generators/oauth_provider/templates/oauth_nonce.rb",
|
67
|
+
"generators/oauth_provider/templates/oauth_nonce_spec.rb",
|
68
|
+
"generators/oauth_provider/templates/oauth_nonce_test.rb",
|
69
|
+
"generators/oauth_provider/templates/oauth_nonces.yml",
|
70
|
+
"generators/oauth_provider/templates/oauth_token.rb",
|
71
|
+
"generators/oauth_provider/templates/oauth_token_spec.rb",
|
72
|
+
"generators/oauth_provider/templates/oauth_token_test.rb",
|
73
|
+
"generators/oauth_provider/templates/oauth_tokens.yml",
|
74
|
+
"generators/oauth_provider/templates/request_token.rb",
|
75
|
+
"generators/oauth_provider/templates/show.html.erb",
|
76
|
+
"generators/oauth_provider/templates/show.html.haml",
|
77
|
+
"init.rb",
|
78
|
+
"install.rb",
|
79
|
+
"lib/oauth-plugin.rb",
|
80
|
+
"lib/oauth/controllers/application_controller_methods.rb",
|
81
|
+
"lib/oauth/controllers/consumer_controller.rb",
|
82
|
+
"lib/oauth/controllers/provider_controller.rb",
|
83
|
+
"lib/oauth/models/consumers/service_loader.rb",
|
84
|
+
"lib/oauth/models/consumers/services/agree2_token.rb",
|
85
|
+
"lib/oauth/models/consumers/services/fireeagle_token.rb",
|
86
|
+
"lib/oauth/models/consumers/services/twitter_token.rb",
|
87
|
+
"lib/oauth/models/consumers/token.rb",
|
88
|
+
"oauth-plugin.gemspec",
|
89
|
+
"rails/init.rb",
|
90
|
+
"tasks/oauth_tasks.rake",
|
91
|
+
"uninstall.rb"
|
92
|
+
]
|
93
|
+
s.homepage = %q{http://github.com/pelle/oauth-plugin/tree/master}
|
94
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
95
|
+
s.require_paths = ["lib"]
|
96
|
+
s.rubyforge_project = %q{oauth}
|
97
|
+
s.rubygems_version = %q{1.3.5}
|
98
|
+
s.summary = %q{Ruby on Rails Plugin for OAuth Provider and Consumer}
|
99
|
+
|
100
|
+
if s.respond_to? :specification_version then
|
101
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
102
|
+
s.specification_version = 3
|
103
|
+
|
104
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
105
|
+
s.add_runtime_dependency(%q<oauth>, [">= 0.3.5"])
|
106
|
+
else
|
107
|
+
s.add_dependency(%q<oauth>, [">= 0.3.5"])
|
108
|
+
end
|
109
|
+
else
|
110
|
+
s.add_dependency(%q<oauth>, [">= 0.3.5"])
|
111
|
+
end
|
112
|
+
end
|
data/rails/init.rb
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
gem 'oauth', '>=0.3.5'
|
2
|
+
require 'oauth/signature/hmac/sha1'
|
3
|
+
require 'oauth/request_proxy/action_controller_request'
|
4
|
+
require 'oauth/server'
|
5
|
+
require 'oauth/controllers/application_controller_methods'
|
6
|
+
|
7
|
+
ActionController::Base.send :include, OAuth::Controllers::ApplicationControllerMethods
|
data/uninstall.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
# Uninstall hook code here
|
metadata
ADDED
@@ -0,0 +1,136 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: filiptepper-oauth-plugin
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.11
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Pelle Braendgaard
|
8
|
+
- Filip Tepper
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2009-09-21 00:00:00 -07:00
|
14
|
+
default_executable:
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: oauth
|
18
|
+
type: :runtime
|
19
|
+
version_requirement:
|
20
|
+
version_requirements: !ruby/object:Gem::Requirement
|
21
|
+
requirements:
|
22
|
+
- - ">="
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: 0.3.5
|
25
|
+
version:
|
26
|
+
description: Rails plugin for implementing an OAuth Provider or Consumer
|
27
|
+
email: oauth-ruby@googlegroups.com
|
28
|
+
executables: []
|
29
|
+
|
30
|
+
extensions: []
|
31
|
+
|
32
|
+
extra_rdoc_files:
|
33
|
+
- README.rdoc
|
34
|
+
files:
|
35
|
+
- .gitignore
|
36
|
+
- CHANGELOG
|
37
|
+
- MIT-LICENSE
|
38
|
+
- README.rdoc
|
39
|
+
- Rakefile
|
40
|
+
- VERSION
|
41
|
+
- generators/oauth_consumer/USAGE
|
42
|
+
- generators/oauth_consumer/oauth_consumer_generator.rb
|
43
|
+
- generators/oauth_consumer/templates/consumer_token.rb
|
44
|
+
- generators/oauth_consumer/templates/controller.rb
|
45
|
+
- generators/oauth_consumer/templates/index.html.erb
|
46
|
+
- generators/oauth_consumer/templates/index.html.haml
|
47
|
+
- generators/oauth_consumer/templates/migration.rb
|
48
|
+
- generators/oauth_consumer/templates/oauth_config.rb
|
49
|
+
- generators/oauth_consumer/templates/show.html.erb
|
50
|
+
- generators/oauth_consumer/templates/show.html.haml
|
51
|
+
- generators/oauth_provider/USAGE
|
52
|
+
- generators/oauth_provider/lib/insert_routes.rb
|
53
|
+
- generators/oauth_provider/oauth_provider_generator.rb
|
54
|
+
- generators/oauth_provider/templates/_form.html.erb
|
55
|
+
- generators/oauth_provider/templates/_form.html.haml
|
56
|
+
- generators/oauth_provider/templates/access_token.rb
|
57
|
+
- generators/oauth_provider/templates/authorize.html.erb
|
58
|
+
- generators/oauth_provider/templates/authorize.html.haml
|
59
|
+
- generators/oauth_provider/templates/authorize_failure.html.erb
|
60
|
+
- generators/oauth_provider/templates/authorize_failure.html.haml
|
61
|
+
- generators/oauth_provider/templates/authorize_success.html.erb
|
62
|
+
- generators/oauth_provider/templates/authorize_success.html.haml
|
63
|
+
- generators/oauth_provider/templates/client_application.rb
|
64
|
+
- generators/oauth_provider/templates/client_application_spec.rb
|
65
|
+
- generators/oauth_provider/templates/client_application_test.rb
|
66
|
+
- generators/oauth_provider/templates/client_applications.yml
|
67
|
+
- generators/oauth_provider/templates/clients_controller.rb
|
68
|
+
- generators/oauth_provider/templates/clients_controller_spec.rb
|
69
|
+
- generators/oauth_provider/templates/clients_controller_test.rb
|
70
|
+
- generators/oauth_provider/templates/controller.rb
|
71
|
+
- generators/oauth_provider/templates/controller_spec.rb
|
72
|
+
- generators/oauth_provider/templates/controller_spec_helper.rb
|
73
|
+
- generators/oauth_provider/templates/controller_test.rb
|
74
|
+
- generators/oauth_provider/templates/controller_test_helper.rb
|
75
|
+
- generators/oauth_provider/templates/edit.html.erb
|
76
|
+
- generators/oauth_provider/templates/edit.html.haml
|
77
|
+
- generators/oauth_provider/templates/index.html.erb
|
78
|
+
- generators/oauth_provider/templates/index.html.haml
|
79
|
+
- generators/oauth_provider/templates/migration.rb
|
80
|
+
- generators/oauth_provider/templates/new.html.erb
|
81
|
+
- generators/oauth_provider/templates/new.html.haml
|
82
|
+
- generators/oauth_provider/templates/oauth_nonce.rb
|
83
|
+
- generators/oauth_provider/templates/oauth_nonce_spec.rb
|
84
|
+
- generators/oauth_provider/templates/oauth_nonce_test.rb
|
85
|
+
- generators/oauth_provider/templates/oauth_nonces.yml
|
86
|
+
- generators/oauth_provider/templates/oauth_token.rb
|
87
|
+
- generators/oauth_provider/templates/oauth_token_spec.rb
|
88
|
+
- generators/oauth_provider/templates/oauth_token_test.rb
|
89
|
+
- generators/oauth_provider/templates/oauth_tokens.yml
|
90
|
+
- generators/oauth_provider/templates/request_token.rb
|
91
|
+
- generators/oauth_provider/templates/show.html.erb
|
92
|
+
- generators/oauth_provider/templates/show.html.haml
|
93
|
+
- init.rb
|
94
|
+
- install.rb
|
95
|
+
- lib/oauth-plugin.rb
|
96
|
+
- lib/oauth/controllers/application_controller_methods.rb
|
97
|
+
- lib/oauth/controllers/consumer_controller.rb
|
98
|
+
- lib/oauth/controllers/provider_controller.rb
|
99
|
+
- lib/oauth/models/consumers/service_loader.rb
|
100
|
+
- lib/oauth/models/consumers/services/agree2_token.rb
|
101
|
+
- lib/oauth/models/consumers/services/fireeagle_token.rb
|
102
|
+
- lib/oauth/models/consumers/services/twitter_token.rb
|
103
|
+
- lib/oauth/models/consumers/token.rb
|
104
|
+
- oauth-plugin.gemspec
|
105
|
+
- rails/init.rb
|
106
|
+
- tasks/oauth_tasks.rake
|
107
|
+
- uninstall.rb
|
108
|
+
has_rdoc: false
|
109
|
+
homepage: http://github.com/pelle/oauth-plugin/tree/master
|
110
|
+
licenses:
|
111
|
+
post_install_message:
|
112
|
+
rdoc_options:
|
113
|
+
- --charset=UTF-8
|
114
|
+
require_paths:
|
115
|
+
- lib
|
116
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
117
|
+
requirements:
|
118
|
+
- - ">="
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: "0"
|
121
|
+
version:
|
122
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - ">="
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: "0"
|
127
|
+
version:
|
128
|
+
requirements: []
|
129
|
+
|
130
|
+
rubyforge_project: oauth
|
131
|
+
rubygems_version: 1.3.5
|
132
|
+
signing_key:
|
133
|
+
specification_version: 3
|
134
|
+
summary: Ruby on Rails Plugin for OAuth Provider and Consumer
|
135
|
+
test_files: []
|
136
|
+
|