le1t0-oauth-plugin 0.3.14.001

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. data/.gitignore +5 -0
  2. data/CHANGELOG +118 -0
  3. data/MIT-LICENSE +20 -0
  4. data/README.rdoc +376 -0
  5. data/Rakefile +43 -0
  6. data/VERSION +1 -0
  7. data/generators/oauth_consumer/USAGE +10 -0
  8. data/generators/oauth_consumer/oauth_consumer_generator.rb +50 -0
  9. data/generators/oauth_consumer/templates/consumer_token.rb +5 -0
  10. data/generators/oauth_consumer/templates/controller.rb +19 -0
  11. data/generators/oauth_consumer/templates/index.html.erb +29 -0
  12. data/generators/oauth_consumer/templates/index.html.haml +18 -0
  13. data/generators/oauth_consumer/templates/migration.rb +20 -0
  14. data/generators/oauth_consumer/templates/oauth_config.rb +46 -0
  15. data/generators/oauth_consumer/templates/show.html.erb +7 -0
  16. data/generators/oauth_consumer/templates/show.html.haml +8 -0
  17. data/generators/oauth_provider/USAGE +20 -0
  18. data/generators/oauth_provider/lib/insert_routes.rb +67 -0
  19. data/generators/oauth_provider/oauth_provider_generator.rb +125 -0
  20. data/generators/oauth_provider/templates/_form.html.erb +17 -0
  21. data/generators/oauth_provider/templates/_form.html.haml +21 -0
  22. data/generators/oauth_provider/templates/access_token.rb +16 -0
  23. data/generators/oauth_provider/templates/authorize.html.erb +14 -0
  24. data/generators/oauth_provider/templates/authorize.html.haml +16 -0
  25. data/generators/oauth_provider/templates/authorize_failure.html.erb +1 -0
  26. data/generators/oauth_provider/templates/authorize_failure.html.haml +1 -0
  27. data/generators/oauth_provider/templates/authorize_success.html.erb +1 -0
  28. data/generators/oauth_provider/templates/authorize_success.html.haml +1 -0
  29. data/generators/oauth_provider/templates/client_application.rb +55 -0
  30. data/generators/oauth_provider/templates/client_application_spec.rb +29 -0
  31. data/generators/oauth_provider/templates/client_application_test.rb +42 -0
  32. data/generators/oauth_provider/templates/client_applications.yml +23 -0
  33. data/generators/oauth_provider/templates/clients_controller.rb +52 -0
  34. data/generators/oauth_provider/templates/clients_controller_spec.rb +239 -0
  35. data/generators/oauth_provider/templates/clients_controller_test.rb +280 -0
  36. data/generators/oauth_provider/templates/controller.rb +11 -0
  37. data/generators/oauth_provider/templates/controller_spec.rb +367 -0
  38. data/generators/oauth_provider/templates/controller_spec_helper.rb +80 -0
  39. data/generators/oauth_provider/templates/controller_test.rb +310 -0
  40. data/generators/oauth_provider/templates/controller_test_helper.rb +115 -0
  41. data/generators/oauth_provider/templates/edit.html.erb +7 -0
  42. data/generators/oauth_provider/templates/edit.html.haml +4 -0
  43. data/generators/oauth_provider/templates/index.html.erb +43 -0
  44. data/generators/oauth_provider/templates/index.html.haml +39 -0
  45. data/generators/oauth_provider/templates/migration.rb +46 -0
  46. data/generators/oauth_provider/templates/new.html.erb +5 -0
  47. data/generators/oauth_provider/templates/new.html.haml +5 -0
  48. data/generators/oauth_provider/templates/oauth_nonce.rb +13 -0
  49. data/generators/oauth_provider/templates/oauth_nonce_spec.rb +24 -0
  50. data/generators/oauth_provider/templates/oauth_nonce_test.rb +26 -0
  51. data/generators/oauth_provider/templates/oauth_nonces.yml +13 -0
  52. data/generators/oauth_provider/templates/oauth_token.rb +31 -0
  53. data/generators/oauth_provider/templates/oauth_token_spec.rb +309 -0
  54. data/generators/oauth_provider/templates/oauth_token_test.rb +57 -0
  55. data/generators/oauth_provider/templates/oauth_tokens.yml +17 -0
  56. data/generators/oauth_provider/templates/request_token.rb +40 -0
  57. data/generators/oauth_provider/templates/show.html.erb +27 -0
  58. data/generators/oauth_provider/templates/show.html.haml +30 -0
  59. data/init.rb +1 -0
  60. data/install.rb +2 -0
  61. data/lib/oauth-plugin.rb +1 -0
  62. data/lib/oauth/controllers/application_controller_methods.rb +110 -0
  63. data/lib/oauth/controllers/consumer_controller.rb +76 -0
  64. data/lib/oauth/controllers/provider_controller.rb +117 -0
  65. data/lib/oauth/models/consumers/service_loader.rb +24 -0
  66. data/lib/oauth/models/consumers/services/agree2_token.rb +15 -0
  67. data/lib/oauth/models/consumers/services/fireeagle_token.rb +39 -0
  68. data/lib/oauth/models/consumers/services/google_token.rb +27 -0
  69. data/lib/oauth/models/consumers/services/twitter_token.rb +17 -0
  70. data/lib/oauth/models/consumers/simple_client.rb +50 -0
  71. data/lib/oauth/models/consumers/token.rb +65 -0
  72. data/oauth-plugin.gemspec +114 -0
  73. data/rails/init.rb +7 -0
  74. data/tasks/oauth_tasks.rake +4 -0
  75. data/uninstall.rb +1 -0
  76. metadata +140 -0
@@ -0,0 +1,24 @@
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
+ begin
14
+ # Let Rails auto-load from the models folder
15
+ eval class_name
16
+ rescue ArgumentError
17
+ rescue NameError
18
+ super_class = value[:super_class]||"ConsumerToken"
19
+ eval "class #{class_name} < #{super_class} ;end"
20
+ end
21
+ end
22
+ end
23
+ end
24
+ 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,27 @@
1
+ require 'portablecontacts'
2
+
3
+ class GoogleToken < ConsumerToken
4
+ GOOGLE_SETTINGS={
5
+ :site=>"https://www.google.com",
6
+ :request_token_path => "/accounts/OAuthGetRequestToken",
7
+ :authorize_path => "/accounts/OAuthAuthorizeToken",
8
+ :access_token_path => "/accounts/OAuthGetAccessToken",
9
+ }
10
+
11
+ def self.consumer
12
+ @consumer||=create_consumer
13
+ end
14
+
15
+ def self.create_consumer(options={})
16
+ OAuth::Consumer.new credentials[:key],credentials[:secret],GOOGLE_SETTINGS.merge(options)
17
+ end
18
+
19
+ def self.get_request_token(callback_url, scope=nil)
20
+ consumer.get_request_token({:oauth_callback=>callback_url}, :scope=>scope||credentials[:scope]||"http://www-opensocial.googleusercontent.com/api/people")
21
+ end
22
+
23
+ def portable_contacts
24
+ @portable_contacts||= PortableContacts::Client.new "http://www-opensocial.googleusercontent.com/api/people", client
25
+ end
26
+
27
+ end
@@ -0,0 +1,17 @@
1
+ require 'twitter'
2
+ class TwitterToken < ConsumerToken
3
+ TWITTER_SETTINGS={:site=>"http://twitter.com"}
4
+ def self.consumer
5
+ @consumer||=OAuth::Consumer.new credentials[:key],credentials[:secret],TWITTER_SETTINGS
6
+ end
7
+
8
+ def client
9
+ unless @client
10
+ @twitter_oauth=Twitter::OAuth.new TwitterToken.consumer.key,TwitterToken.consumer.secret
11
+ @twitter_oauth.authorize_from_access token,secret
12
+ @client=Twitter::Base.new(@twitter_oauth)
13
+ end
14
+
15
+ @client
16
+ end
17
+ end
@@ -0,0 +1,50 @@
1
+ require 'json'
2
+ module Oauth
3
+ module Models
4
+ module Consumers
5
+ # This is just a simple
6
+ class SimpleClient
7
+ attr_reader :token
8
+
9
+ def initialize(token)
10
+ @token = token
11
+ end
12
+
13
+
14
+ def put(path,params={})
15
+ parse(token.put(path,params, {'Accept' => 'application/json'}))
16
+ end
17
+
18
+ def delete(path)
19
+ parse(token.delete(path, {'Accept' => 'application/json'}))
20
+ end
21
+
22
+ def post(path,params={})
23
+ parse(token.post(path,params, {'Accept' => 'application/json'}))
24
+ end
25
+
26
+ def get(path)
27
+ parse(token.get(path, {'Accept' => 'application/json'}))
28
+ end
29
+
30
+ protected
31
+
32
+ def parse(response)
33
+ return false unless response
34
+ if ["200","201"].include? response.code
35
+ unless response.body.blank?
36
+ JSON.parse(response.body)
37
+ else
38
+ true
39
+ end
40
+ else
41
+ logger.debug "Got Response code: #{response.code}"
42
+ false
43
+ end
44
+
45
+ end
46
+
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,65 @@
1
+ require 'oauth/consumer'
2
+ require File.join(File.dirname(__FILE__), 'simple_client')
3
+
4
+ module Oauth
5
+ module Models
6
+ module Consumers
7
+ module Token
8
+ def self.included(model)
9
+ model.class_eval do
10
+ belongs_to :user
11
+ validates_presence_of :user, :token, :secret
12
+ end
13
+
14
+ model.send(:include, InstanceMethods)
15
+ model.send(:extend, ClassMethods)
16
+
17
+ end
18
+
19
+ module ClassMethods
20
+
21
+ def service_name
22
+ @service_name||=self.to_s.underscore.scan(/^(.*?)(_token)?$/)[0][0].to_sym
23
+ end
24
+
25
+ def consumer
26
+ @consumer||=OAuth::Consumer.new credentials[:key],credentials[:secret],credentials[:options]
27
+ end
28
+
29
+ def get_request_token(callback_url)
30
+ consumer.get_request_token(:oauth_callback=>callback_url)
31
+ end
32
+
33
+ def create_from_request_token(user,token,secret,oauth_verifier)
34
+ request_token=OAuth::RequestToken.new consumer,token,secret
35
+ options={}
36
+ options[:oauth_verifier]=oauth_verifier if oauth_verifier
37
+ access_token=request_token.get_access_token options
38
+ create :user_id=>user.id,:token=>access_token.token,:secret=>access_token.secret
39
+ end
40
+
41
+ protected
42
+
43
+ def credentials
44
+ @credentials||=OAUTH_CREDENTIALS[service_name]
45
+ end
46
+
47
+ end
48
+
49
+ module InstanceMethods
50
+
51
+ # Main client for interfacing with remote service. Override this to use
52
+ # preexisting library eg. Twitter gem.
53
+ def client
54
+ @client||=OAuth::AccessToken.new self.class.consumer,token,secret
55
+ end
56
+
57
+ def simple_client
58
+ @simple_client||=SimpleClient.new OAuth::AccessToken.new( self.class.consumer,token,secret)
59
+ end
60
+
61
+ end
62
+ end
63
+ end
64
+ end
65
+ end
@@ -0,0 +1,114 @@
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{le1t0-oauth-plugin}
8
+ s.version = "0.3.14.001"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Le1t0"]
12
+ s.date = %q{2011-02-02}
13
+ s.description = %q{Rails plugin for implementing an OAuth Provider or Consumer}
14
+ s.email = %q{dev@ewout.to}
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/google_token.rb",
87
+ "lib/oauth/models/consumers/services/twitter_token.rb",
88
+ "lib/oauth/models/consumers/simple_client.rb",
89
+ "lib/oauth/models/consumers/token.rb",
90
+ "oauth-plugin.gemspec",
91
+ "rails/init.rb",
92
+ "tasks/oauth_tasks.rake",
93
+ "uninstall.rb"
94
+ ]
95
+ s.homepage = %q{http://github.com/pelle/oauth-plugin}
96
+ s.rdoc_options = ["--charset=UTF-8"]
97
+ s.require_paths = ["lib"]
98
+ s.rubyforge_project = %q{oauth}
99
+ s.rubygems_version = %q{1.3.5}
100
+ s.summary = %q{Ruby on Rails Plugin for OAuth Provider and Consumer}
101
+
102
+ if s.respond_to? :specification_version then
103
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
104
+ s.specification_version = 3
105
+
106
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
107
+ s.add_runtime_dependency(%q<oauth>, [">= 0.3.5"])
108
+ else
109
+ s.add_dependency(%q<oauth>, [">= 0.3.5"])
110
+ end
111
+ else
112
+ s.add_dependency(%q<oauth>, [">= 0.3.5"])
113
+ end
114
+ end
@@ -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
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :oauth do
3
+ # # Task goes here
4
+ # end
@@ -0,0 +1 @@
1
+ # Uninstall hook code here
metadata ADDED
@@ -0,0 +1,140 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: le1t0-oauth-plugin
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.3.14.001
6
+ platform: ruby
7
+ authors:
8
+ - Le1t0
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2011-02-02 00:00:00 +01:00
14
+ default_executable:
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: oauth
18
+ prerelease: false
19
+ requirement: &id001 !ruby/object:Gem::Requirement
20
+ none: false
21
+ requirements:
22
+ - - ">="
23
+ - !ruby/object:Gem::Version
24
+ version: 0.3.5
25
+ type: :runtime
26
+ version_requirements: *id001
27
+ description: Rails plugin for implementing an OAuth Provider or Consumer
28
+ email: dev@ewout.to
29
+ executables: []
30
+
31
+ extensions: []
32
+
33
+ extra_rdoc_files:
34
+ - README.rdoc
35
+ files:
36
+ - .gitignore
37
+ - CHANGELOG
38
+ - MIT-LICENSE
39
+ - README.rdoc
40
+ - Rakefile
41
+ - VERSION
42
+ - generators/oauth_consumer/USAGE
43
+ - generators/oauth_consumer/oauth_consumer_generator.rb
44
+ - generators/oauth_consumer/templates/consumer_token.rb
45
+ - generators/oauth_consumer/templates/controller.rb
46
+ - generators/oauth_consumer/templates/index.html.erb
47
+ - generators/oauth_consumer/templates/index.html.haml
48
+ - generators/oauth_consumer/templates/migration.rb
49
+ - generators/oauth_consumer/templates/oauth_config.rb
50
+ - generators/oauth_consumer/templates/show.html.erb
51
+ - generators/oauth_consumer/templates/show.html.haml
52
+ - generators/oauth_provider/USAGE
53
+ - generators/oauth_provider/lib/insert_routes.rb
54
+ - generators/oauth_provider/oauth_provider_generator.rb
55
+ - generators/oauth_provider/templates/_form.html.erb
56
+ - generators/oauth_provider/templates/_form.html.haml
57
+ - generators/oauth_provider/templates/access_token.rb
58
+ - generators/oauth_provider/templates/authorize.html.erb
59
+ - generators/oauth_provider/templates/authorize.html.haml
60
+ - generators/oauth_provider/templates/authorize_failure.html.erb
61
+ - generators/oauth_provider/templates/authorize_failure.html.haml
62
+ - generators/oauth_provider/templates/authorize_success.html.erb
63
+ - generators/oauth_provider/templates/authorize_success.html.haml
64
+ - generators/oauth_provider/templates/client_application.rb
65
+ - generators/oauth_provider/templates/client_application_spec.rb
66
+ - generators/oauth_provider/templates/client_application_test.rb
67
+ - generators/oauth_provider/templates/client_applications.yml
68
+ - generators/oauth_provider/templates/clients_controller.rb
69
+ - generators/oauth_provider/templates/clients_controller_spec.rb
70
+ - generators/oauth_provider/templates/clients_controller_test.rb
71
+ - generators/oauth_provider/templates/controller.rb
72
+ - generators/oauth_provider/templates/controller_spec.rb
73
+ - generators/oauth_provider/templates/controller_spec_helper.rb
74
+ - generators/oauth_provider/templates/controller_test.rb
75
+ - generators/oauth_provider/templates/controller_test_helper.rb
76
+ - generators/oauth_provider/templates/edit.html.erb
77
+ - generators/oauth_provider/templates/edit.html.haml
78
+ - generators/oauth_provider/templates/index.html.erb
79
+ - generators/oauth_provider/templates/index.html.haml
80
+ - generators/oauth_provider/templates/migration.rb
81
+ - generators/oauth_provider/templates/new.html.erb
82
+ - generators/oauth_provider/templates/new.html.haml
83
+ - generators/oauth_provider/templates/oauth_nonce.rb
84
+ - generators/oauth_provider/templates/oauth_nonce_spec.rb
85
+ - generators/oauth_provider/templates/oauth_nonce_test.rb
86
+ - generators/oauth_provider/templates/oauth_nonces.yml
87
+ - generators/oauth_provider/templates/oauth_token.rb
88
+ - generators/oauth_provider/templates/oauth_token_spec.rb
89
+ - generators/oauth_provider/templates/oauth_token_test.rb
90
+ - generators/oauth_provider/templates/oauth_tokens.yml
91
+ - generators/oauth_provider/templates/request_token.rb
92
+ - generators/oauth_provider/templates/show.html.erb
93
+ - generators/oauth_provider/templates/show.html.haml
94
+ - init.rb
95
+ - install.rb
96
+ - lib/oauth-plugin.rb
97
+ - lib/oauth/controllers/application_controller_methods.rb
98
+ - lib/oauth/controllers/consumer_controller.rb
99
+ - lib/oauth/controllers/provider_controller.rb
100
+ - lib/oauth/models/consumers/service_loader.rb
101
+ - lib/oauth/models/consumers/services/agree2_token.rb
102
+ - lib/oauth/models/consumers/services/fireeagle_token.rb
103
+ - lib/oauth/models/consumers/services/google_token.rb
104
+ - lib/oauth/models/consumers/services/twitter_token.rb
105
+ - lib/oauth/models/consumers/simple_client.rb
106
+ - lib/oauth/models/consumers/token.rb
107
+ - oauth-plugin.gemspec
108
+ - rails/init.rb
109
+ - tasks/oauth_tasks.rake
110
+ - uninstall.rb
111
+ has_rdoc: true
112
+ homepage: http://github.com/pelle/oauth-plugin
113
+ licenses: []
114
+
115
+ post_install_message:
116
+ rdoc_options:
117
+ - --charset=UTF-8
118
+ require_paths:
119
+ - lib
120
+ required_ruby_version: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: "0"
126
+ required_rubygems_version: !ruby/object:Gem::Requirement
127
+ none: false
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: "0"
132
+ requirements: []
133
+
134
+ rubyforge_project: oauth
135
+ rubygems_version: 1.5.0
136
+ signing_key:
137
+ specification_version: 3
138
+ summary: Ruby on Rails Plugin for OAuth Provider and Consumer
139
+ test_files: []
140
+