insrc_devise_oauth2_providable 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +35 -0
- data/.rvmrc +1 -0
- data/CONTRIBUTORS.txt +6 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +158 -0
- data/Rakefile +8 -0
- data/app/controllers/devise/oauth2_providable/authorizations_controller.rb +59 -0
- data/app/controllers/devise/oauth2_providable/tokens_controller.rb +17 -0
- data/app/models/devise/oauth2_providable/access_token.rb +24 -0
- data/app/models/devise/oauth2_providable/authorization_code.rb +3 -0
- data/app/models/devise/oauth2_providable/client.rb +24 -0
- data/app/models/devise/oauth2_providable/refresh_token.rb +8 -0
- data/app/views/devise/oauth2_providable/authorizations/_form.html.erb +7 -0
- data/app/views/devise/oauth2_providable/authorizations/error.html.erb +4 -0
- data/app/views/devise/oauth2_providable/authorizations/new.html.erb +4 -0
- data/config/routes.rb +7 -0
- data/db/migrate/20111014160714_create_devise_oauth2_providable_schema.rb +54 -0
- data/devise_oauth2_providable.gemspec +32 -0
- data/lib/devise/oauth2_providable/engine.rb +16 -0
- data/lib/devise/oauth2_providable/expirable_token.rb +58 -0
- data/lib/devise/oauth2_providable/models/oauth2_authorization_code_grantable.rb +6 -0
- data/lib/devise/oauth2_providable/models/oauth2_password_grantable.rb +6 -0
- data/lib/devise/oauth2_providable/models/oauth2_providable.rb +13 -0
- data/lib/devise/oauth2_providable/models/oauth2_refresh_token_grantable.rb +6 -0
- data/lib/devise/oauth2_providable/strategies/oauth2_authorization_code_grant_type_strategy.rb +21 -0
- data/lib/devise/oauth2_providable/strategies/oauth2_grant_type_strategy.rb +39 -0
- data/lib/devise/oauth2_providable/strategies/oauth2_password_grant_type_strategy.rb +22 -0
- data/lib/devise/oauth2_providable/strategies/oauth2_providable_strategy.rb +25 -0
- data/lib/devise/oauth2_providable/strategies/oauth2_refresh_token_grant_type_strategy.rb +22 -0
- data/lib/devise/oauth2_providable/version.rb +5 -0
- data/lib/devise_oauth2_providable.rb +41 -0
- data/script/rails +6 -0
- data/spec/controllers/authorizations_controller_spec.rb +32 -0
- data/spec/controllers/protected_controller_spec.rb +42 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +7 -0
- data/spec/dummy/app/assets/stylesheets/application.css +7 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/controllers/protected_controller.rb +6 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.gitkeep +0 -0
- data/spec/dummy/app/models/.gitkeep +0 -0
- data/spec/dummy/app/models/user.rb +3 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +51 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +30 -0
- data/spec/dummy/config/environments/production.rb +60 -0
- data/spec/dummy/config/environments/test.rb +39 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/devise.rb +210 -0
- data/spec/dummy/config/initializers/inflections.rb +10 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/devise.en.yml +58 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +7 -0
- data/spec/dummy/db/migrate/20111014142838_create_users.rb +9 -0
- data/spec/dummy/db/migrate/20111014161437_create_devise_oauth2_providable_schema.rb +55 -0
- data/spec/dummy/db/schema.rb +78 -0
- data/spec/dummy/lib/assets/.gitkeep +0 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +26 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/factories/client_factory.rb +5 -0
- data/spec/factories/user_factory.rb +4 -0
- data/spec/integration/oauth2_authorization_token_grant_type_strategy_spec.rb +136 -0
- data/spec/integration/oauth2_password_grant_type_strategy_spec.rb +174 -0
- data/spec/integration/oauth2_refresh_token_grant_type_strategy_spec.rb +138 -0
- data/spec/lib/devise_oauth2_providable_spec.rb +7 -0
- data/spec/models/access_token_spec.rb +53 -0
- data/spec/models/authorization_code_spec.rb +23 -0
- data/spec/models/client_spec.rb +22 -0
- data/spec/models/refresh_token_spec.rb +26 -0
- data/spec/models/user_spec.rb +6 -0
- data/spec/routing/authorizations_routing_spec.rb +16 -0
- data/spec/routing/tokens_routing_spec.rb +9 -0
- data/spec/spec_helper.rb +29 -0
- data/spec/support/inject_engine_routes_into_application.rb +74 -0
- data/spec/support/match_json.rb +6 -0
- metadata +374 -0
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Devise::Oauth2Providable::AuthorizationsController do
|
4
|
+
describe 'routing' do
|
5
|
+
pending 'routes POST /oauth2/authorizations' do
|
6
|
+
post('/oauth2/authorizations').should route_to('devise/oauth2_providable/authorizations#create')
|
7
|
+
end
|
8
|
+
pending 'routes GET /oauth2/authorize' do
|
9
|
+
get('/oauth2/authorize').should route_to('devise/oauth2_providable/authorizations#new')
|
10
|
+
end
|
11
|
+
pending 'routes POST /oauth2/authorize' do
|
12
|
+
#FIXME: this is valid, but the route is not being loaded into the test
|
13
|
+
post('/oauth2/authorize').should route_to('devise/oauth2_providable/authorizations#new')
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# Configure Rails Envinronment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
spec_root = File.expand_path('..', __FILE__)
|
4
|
+
require File.expand_path("dummy/config/environment.rb", spec_root)
|
5
|
+
|
6
|
+
require 'pry'
|
7
|
+
require 'rspec/rails'
|
8
|
+
require 'shoulda-matchers'
|
9
|
+
require 'factory_girl_rspec'
|
10
|
+
FactoryGirl.definition_file_paths = [File.join(spec_root, 'factories')]
|
11
|
+
FactoryGirl.find_definitions
|
12
|
+
|
13
|
+
ENGINE_RAILS_ROOT=File.join(File.dirname(__FILE__), '../')
|
14
|
+
|
15
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
16
|
+
# in spec/support/ and its subdirectories.
|
17
|
+
Dir[File.join(ENGINE_RAILS_ROOT, "spec/support/**/*.rb")].each {|f| require f }
|
18
|
+
|
19
|
+
RSpec.configure do |config|
|
20
|
+
config.include Devise::TestHelpers, :type => :controller
|
21
|
+
|
22
|
+
config.use_transactional_fixtures = true
|
23
|
+
|
24
|
+
# enable rendering of views for controller tests
|
25
|
+
# see http://stackoverflow.com/questions/4401539/rspec-2-how-to-render-views-by-default-for-all-controller-specs
|
26
|
+
config.render_views
|
27
|
+
end
|
28
|
+
|
29
|
+
ActiveRecord::Migrator.migrate(File.expand_path("dummy/db/migrate/", spec_root))
|
@@ -0,0 +1,74 @@
|
|
1
|
+
# see http://www.builtfromsource.com/2011/09/21/testing-routes-with-rails-3-1-engines/
|
2
|
+
module Devise
|
3
|
+
module Oauth2Providable
|
4
|
+
module EngineHacks
|
5
|
+
##
|
6
|
+
# Automatically append all of the current engine's routes to the main
|
7
|
+
# application's route set. This needs to be done for ALL functional tests that
|
8
|
+
# use engine routes, since the mounted routes don't work during tests.
|
9
|
+
#
|
10
|
+
# @param [Symbol] engine_symbol Optional; if provided, uses this symbol to
|
11
|
+
# locate the engine class by name, otherwise uses the module of the calling
|
12
|
+
# test case as the presumed name of the engine.
|
13
|
+
#
|
14
|
+
# @author Jason Hamilton (jhamilton@greatherorift.com)
|
15
|
+
# @author Matthew Ratzloff (matt@urbaninfluence.com)
|
16
|
+
def load_engine_routes(engine_symbol = nil)
|
17
|
+
if engine_symbol
|
18
|
+
engine_name = engine_symbol.to_s.camelize
|
19
|
+
else
|
20
|
+
# No engine provided, so presume the current engine is the one to load
|
21
|
+
engine_name = self.class.name.split("::").first.split("(").last
|
22
|
+
end
|
23
|
+
engine = ("#{engine_name}::Engine").constantize
|
24
|
+
|
25
|
+
engine_name = 'oauth2'
|
26
|
+
engine = Devise::Oauth2Providable::Engine
|
27
|
+
named_routes = engine.routes.named_routes.routes
|
28
|
+
resourced_routes = []
|
29
|
+
|
30
|
+
# Append the routes for this module to the existing routes
|
31
|
+
# ::Rails.application.routes.disable_clear_and_finalize = true
|
32
|
+
# ::Rails.application.routes.clear!
|
33
|
+
# ::Rails.application.routes_reloader.paths.each { |path| load(path) }
|
34
|
+
::Rails.application.routes.draw do
|
35
|
+
|
36
|
+
# unnamed_routes = engine.routes.routes - named_routes.values
|
37
|
+
|
38
|
+
engine.routes.routes.each do |route|
|
39
|
+
# Call the method by hand based on the symbol
|
40
|
+
path = "/#{engine_name.underscore}#{route.path}"
|
41
|
+
requirements = route.requirements
|
42
|
+
if path_helper = named_routes[route]
|
43
|
+
requirements[:as] = path_helper
|
44
|
+
elsif route.requirements[:controller].present?
|
45
|
+
# Presume that all controllers referenced in routes should also be
|
46
|
+
# resources and append that routing on the end so that *_path helpers
|
47
|
+
# will still work
|
48
|
+
resourced_routes << route.requirements[:controller].gsub("#{engine_name.downcase}/", "").to_sym
|
49
|
+
end
|
50
|
+
|
51
|
+
verb = (route.verb.blank? ? "GET" : route.verb).downcase.to_sym
|
52
|
+
send(verb, path, requirements) if respond_to?(verb)
|
53
|
+
end
|
54
|
+
|
55
|
+
# Add each route, once, to the end under a scope to trick path helpers.
|
56
|
+
# This will probably break as soon as there is route name overlap, but
|
57
|
+
# we'll cross that bridge when we get to it.
|
58
|
+
# resourced_routes.uniq!
|
59
|
+
# scope engine_name.downcase do
|
60
|
+
# resourced_routes.each do |resource|
|
61
|
+
# resources resource
|
62
|
+
# end
|
63
|
+
# end
|
64
|
+
end
|
65
|
+
|
66
|
+
# Finalize the routes
|
67
|
+
::Rails.application.routes.finalize!
|
68
|
+
::Rails.application.routes.disable_clear_and_finalize = false
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
# Rails::Engine.send(:include, Devise::Oauth2Providable::EngineHacks)
|
metadata
ADDED
@@ -0,0 +1,374 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: insrc_devise_oauth2_providable
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 23
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 1
|
9
|
+
- 2
|
10
|
+
version: 1.1.2
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Ryan Sonnek
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2013-07-03 00:00:00 +08:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: rails
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 3
|
32
|
+
- 1
|
33
|
+
- 0
|
34
|
+
version: 3.1.0
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: devise
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 1
|
46
|
+
segments:
|
47
|
+
- 1
|
48
|
+
- 4
|
49
|
+
- 3
|
50
|
+
version: 1.4.3
|
51
|
+
type: :runtime
|
52
|
+
version_requirements: *id002
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: rack-oauth2
|
55
|
+
prerelease: false
|
56
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
hash: 29
|
62
|
+
segments:
|
63
|
+
- 1
|
64
|
+
- 0
|
65
|
+
- 5
|
66
|
+
version: 1.0.5
|
67
|
+
type: :runtime
|
68
|
+
version_requirements: *id003
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec-rails
|
71
|
+
prerelease: false
|
72
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - "="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
hash: 21
|
78
|
+
segments:
|
79
|
+
- 2
|
80
|
+
- 6
|
81
|
+
- 1
|
82
|
+
version: 2.6.1
|
83
|
+
type: :development
|
84
|
+
version_requirements: *id004
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
name: sqlite3
|
87
|
+
prerelease: false
|
88
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - "="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
hash: 17
|
94
|
+
segments:
|
95
|
+
- 1
|
96
|
+
- 3
|
97
|
+
- 5
|
98
|
+
version: 1.3.5
|
99
|
+
type: :development
|
100
|
+
version_requirements: *id005
|
101
|
+
- !ruby/object:Gem::Dependency
|
102
|
+
name: shoulda-matchers
|
103
|
+
prerelease: false
|
104
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - "="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
hash: 2978714761
|
110
|
+
segments:
|
111
|
+
- 1
|
112
|
+
- 0
|
113
|
+
- 0
|
114
|
+
- beta
|
115
|
+
- 3
|
116
|
+
version: 1.0.0.beta3
|
117
|
+
type: :development
|
118
|
+
version_requirements: *id006
|
119
|
+
- !ruby/object:Gem::Dependency
|
120
|
+
name: pry
|
121
|
+
prerelease: false
|
122
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
123
|
+
none: false
|
124
|
+
requirements:
|
125
|
+
- - "="
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
hash: 27
|
128
|
+
segments:
|
129
|
+
- 0
|
130
|
+
- 9
|
131
|
+
- 6
|
132
|
+
- 2
|
133
|
+
version: 0.9.6.2
|
134
|
+
type: :development
|
135
|
+
version_requirements: *id007
|
136
|
+
- !ruby/object:Gem::Dependency
|
137
|
+
name: factory_girl
|
138
|
+
prerelease: false
|
139
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
140
|
+
none: false
|
141
|
+
requirements:
|
142
|
+
- - "="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
hash: 7
|
145
|
+
segments:
|
146
|
+
- 2
|
147
|
+
- 2
|
148
|
+
- 0
|
149
|
+
version: 2.2.0
|
150
|
+
type: :development
|
151
|
+
version_requirements: *id008
|
152
|
+
- !ruby/object:Gem::Dependency
|
153
|
+
name: factory_girl_rspec
|
154
|
+
prerelease: false
|
155
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
156
|
+
none: false
|
157
|
+
requirements:
|
158
|
+
- - "="
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
hash: 29
|
161
|
+
segments:
|
162
|
+
- 0
|
163
|
+
- 0
|
164
|
+
- 1
|
165
|
+
version: 0.0.1
|
166
|
+
type: :development
|
167
|
+
version_requirements: *id009
|
168
|
+
- !ruby/object:Gem::Dependency
|
169
|
+
name: rake
|
170
|
+
prerelease: false
|
171
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
172
|
+
none: false
|
173
|
+
requirements:
|
174
|
+
- - "="
|
175
|
+
- !ruby/object:Gem::Version
|
176
|
+
hash: 11
|
177
|
+
segments:
|
178
|
+
- 0
|
179
|
+
- 9
|
180
|
+
- 2
|
181
|
+
- 2
|
182
|
+
version: 0.9.2.2
|
183
|
+
type: :development
|
184
|
+
version_requirements: *id010
|
185
|
+
description: Rails3 engine that adds OAuth2 Provider support to any application built with Devise authentication
|
186
|
+
email:
|
187
|
+
- ryan@socialcast.com
|
188
|
+
executables: []
|
189
|
+
|
190
|
+
extensions: []
|
191
|
+
|
192
|
+
extra_rdoc_files: []
|
193
|
+
|
194
|
+
files:
|
195
|
+
- .gitignore
|
196
|
+
- .rvmrc
|
197
|
+
- CONTRIBUTORS.txt
|
198
|
+
- Gemfile
|
199
|
+
- LICENSE.txt
|
200
|
+
- README.md
|
201
|
+
- Rakefile
|
202
|
+
- app/controllers/devise/oauth2_providable/authorizations_controller.rb
|
203
|
+
- app/controllers/devise/oauth2_providable/tokens_controller.rb
|
204
|
+
- app/models/devise/oauth2_providable/access_token.rb
|
205
|
+
- app/models/devise/oauth2_providable/authorization_code.rb
|
206
|
+
- app/models/devise/oauth2_providable/client.rb
|
207
|
+
- app/models/devise/oauth2_providable/refresh_token.rb
|
208
|
+
- app/views/devise/oauth2_providable/authorizations/_form.html.erb
|
209
|
+
- app/views/devise/oauth2_providable/authorizations/error.html.erb
|
210
|
+
- app/views/devise/oauth2_providable/authorizations/new.html.erb
|
211
|
+
- config/routes.rb
|
212
|
+
- db/migrate/20111014160714_create_devise_oauth2_providable_schema.rb
|
213
|
+
- devise_oauth2_providable.gemspec
|
214
|
+
- lib/devise/oauth2_providable/engine.rb
|
215
|
+
- lib/devise/oauth2_providable/expirable_token.rb
|
216
|
+
- lib/devise/oauth2_providable/models/oauth2_authorization_code_grantable.rb
|
217
|
+
- lib/devise/oauth2_providable/models/oauth2_password_grantable.rb
|
218
|
+
- lib/devise/oauth2_providable/models/oauth2_providable.rb
|
219
|
+
- lib/devise/oauth2_providable/models/oauth2_refresh_token_grantable.rb
|
220
|
+
- lib/devise/oauth2_providable/strategies/oauth2_authorization_code_grant_type_strategy.rb
|
221
|
+
- lib/devise/oauth2_providable/strategies/oauth2_grant_type_strategy.rb
|
222
|
+
- lib/devise/oauth2_providable/strategies/oauth2_password_grant_type_strategy.rb
|
223
|
+
- lib/devise/oauth2_providable/strategies/oauth2_providable_strategy.rb
|
224
|
+
- lib/devise/oauth2_providable/strategies/oauth2_refresh_token_grant_type_strategy.rb
|
225
|
+
- lib/devise/oauth2_providable/version.rb
|
226
|
+
- lib/devise_oauth2_providable.rb
|
227
|
+
- script/rails
|
228
|
+
- spec/controllers/authorizations_controller_spec.rb
|
229
|
+
- spec/controllers/protected_controller_spec.rb
|
230
|
+
- spec/dummy/Rakefile
|
231
|
+
- spec/dummy/app/assets/javascripts/application.js
|
232
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
233
|
+
- spec/dummy/app/controllers/application_controller.rb
|
234
|
+
- spec/dummy/app/controllers/protected_controller.rb
|
235
|
+
- spec/dummy/app/helpers/application_helper.rb
|
236
|
+
- spec/dummy/app/mailers/.gitkeep
|
237
|
+
- spec/dummy/app/models/.gitkeep
|
238
|
+
- spec/dummy/app/models/user.rb
|
239
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
240
|
+
- spec/dummy/config.ru
|
241
|
+
- spec/dummy/config/application.rb
|
242
|
+
- spec/dummy/config/boot.rb
|
243
|
+
- spec/dummy/config/database.yml
|
244
|
+
- spec/dummy/config/environment.rb
|
245
|
+
- spec/dummy/config/environments/development.rb
|
246
|
+
- spec/dummy/config/environments/production.rb
|
247
|
+
- spec/dummy/config/environments/test.rb
|
248
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
249
|
+
- spec/dummy/config/initializers/devise.rb
|
250
|
+
- spec/dummy/config/initializers/inflections.rb
|
251
|
+
- spec/dummy/config/initializers/mime_types.rb
|
252
|
+
- spec/dummy/config/initializers/secret_token.rb
|
253
|
+
- spec/dummy/config/initializers/session_store.rb
|
254
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
255
|
+
- spec/dummy/config/locales/devise.en.yml
|
256
|
+
- spec/dummy/config/locales/en.yml
|
257
|
+
- spec/dummy/config/routes.rb
|
258
|
+
- spec/dummy/db/migrate/20111014142838_create_users.rb
|
259
|
+
- spec/dummy/db/migrate/20111014161437_create_devise_oauth2_providable_schema.rb
|
260
|
+
- spec/dummy/db/schema.rb
|
261
|
+
- spec/dummy/lib/assets/.gitkeep
|
262
|
+
- spec/dummy/log/.gitkeep
|
263
|
+
- spec/dummy/public/404.html
|
264
|
+
- spec/dummy/public/422.html
|
265
|
+
- spec/dummy/public/500.html
|
266
|
+
- spec/dummy/public/favicon.ico
|
267
|
+
- spec/dummy/script/rails
|
268
|
+
- spec/factories/client_factory.rb
|
269
|
+
- spec/factories/user_factory.rb
|
270
|
+
- spec/integration/oauth2_authorization_token_grant_type_strategy_spec.rb
|
271
|
+
- spec/integration/oauth2_password_grant_type_strategy_spec.rb
|
272
|
+
- spec/integration/oauth2_refresh_token_grant_type_strategy_spec.rb
|
273
|
+
- spec/lib/devise_oauth2_providable_spec.rb
|
274
|
+
- spec/models/access_token_spec.rb
|
275
|
+
- spec/models/authorization_code_spec.rb
|
276
|
+
- spec/models/client_spec.rb
|
277
|
+
- spec/models/refresh_token_spec.rb
|
278
|
+
- spec/models/user_spec.rb
|
279
|
+
- spec/routing/authorizations_routing_spec.rb
|
280
|
+
- spec/routing/tokens_routing_spec.rb
|
281
|
+
- spec/spec_helper.rb
|
282
|
+
- spec/support/inject_engine_routes_into_application.rb
|
283
|
+
- spec/support/match_json.rb
|
284
|
+
has_rdoc: true
|
285
|
+
homepage: ""
|
286
|
+
licenses: []
|
287
|
+
|
288
|
+
post_install_message:
|
289
|
+
rdoc_options: []
|
290
|
+
|
291
|
+
require_paths:
|
292
|
+
- lib
|
293
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
294
|
+
none: false
|
295
|
+
requirements:
|
296
|
+
- - ">="
|
297
|
+
- !ruby/object:Gem::Version
|
298
|
+
hash: 3
|
299
|
+
segments:
|
300
|
+
- 0
|
301
|
+
version: "0"
|
302
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
303
|
+
none: false
|
304
|
+
requirements:
|
305
|
+
- - ">="
|
306
|
+
- !ruby/object:Gem::Version
|
307
|
+
hash: 3
|
308
|
+
segments:
|
309
|
+
- 0
|
310
|
+
version: "0"
|
311
|
+
requirements: []
|
312
|
+
|
313
|
+
rubyforge_project: devise_oauth2_providable
|
314
|
+
rubygems_version: 1.4.2
|
315
|
+
signing_key:
|
316
|
+
specification_version: 3
|
317
|
+
summary: OAuth2 Provider for Rails3 applications
|
318
|
+
test_files:
|
319
|
+
- spec/controllers/authorizations_controller_spec.rb
|
320
|
+
- spec/controllers/protected_controller_spec.rb
|
321
|
+
- spec/dummy/Rakefile
|
322
|
+
- spec/dummy/app/assets/javascripts/application.js
|
323
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
324
|
+
- spec/dummy/app/controllers/application_controller.rb
|
325
|
+
- spec/dummy/app/controllers/protected_controller.rb
|
326
|
+
- spec/dummy/app/helpers/application_helper.rb
|
327
|
+
- spec/dummy/app/mailers/.gitkeep
|
328
|
+
- spec/dummy/app/models/.gitkeep
|
329
|
+
- spec/dummy/app/models/user.rb
|
330
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
331
|
+
- spec/dummy/config.ru
|
332
|
+
- spec/dummy/config/application.rb
|
333
|
+
- spec/dummy/config/boot.rb
|
334
|
+
- spec/dummy/config/database.yml
|
335
|
+
- spec/dummy/config/environment.rb
|
336
|
+
- spec/dummy/config/environments/development.rb
|
337
|
+
- spec/dummy/config/environments/production.rb
|
338
|
+
- spec/dummy/config/environments/test.rb
|
339
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
340
|
+
- spec/dummy/config/initializers/devise.rb
|
341
|
+
- spec/dummy/config/initializers/inflections.rb
|
342
|
+
- spec/dummy/config/initializers/mime_types.rb
|
343
|
+
- spec/dummy/config/initializers/secret_token.rb
|
344
|
+
- spec/dummy/config/initializers/session_store.rb
|
345
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
346
|
+
- spec/dummy/config/locales/devise.en.yml
|
347
|
+
- spec/dummy/config/locales/en.yml
|
348
|
+
- spec/dummy/config/routes.rb
|
349
|
+
- spec/dummy/db/migrate/20111014142838_create_users.rb
|
350
|
+
- spec/dummy/db/migrate/20111014161437_create_devise_oauth2_providable_schema.rb
|
351
|
+
- spec/dummy/db/schema.rb
|
352
|
+
- spec/dummy/lib/assets/.gitkeep
|
353
|
+
- spec/dummy/log/.gitkeep
|
354
|
+
- spec/dummy/public/404.html
|
355
|
+
- spec/dummy/public/422.html
|
356
|
+
- spec/dummy/public/500.html
|
357
|
+
- spec/dummy/public/favicon.ico
|
358
|
+
- spec/dummy/script/rails
|
359
|
+
- spec/factories/client_factory.rb
|
360
|
+
- spec/factories/user_factory.rb
|
361
|
+
- spec/integration/oauth2_authorization_token_grant_type_strategy_spec.rb
|
362
|
+
- spec/integration/oauth2_password_grant_type_strategy_spec.rb
|
363
|
+
- spec/integration/oauth2_refresh_token_grant_type_strategy_spec.rb
|
364
|
+
- spec/lib/devise_oauth2_providable_spec.rb
|
365
|
+
- spec/models/access_token_spec.rb
|
366
|
+
- spec/models/authorization_code_spec.rb
|
367
|
+
- spec/models/client_spec.rb
|
368
|
+
- spec/models/refresh_token_spec.rb
|
369
|
+
- spec/models/user_spec.rb
|
370
|
+
- spec/routing/authorizations_routing_spec.rb
|
371
|
+
- spec/routing/tokens_routing_spec.rb
|
372
|
+
- spec/spec_helper.rb
|
373
|
+
- spec/support/inject_engine_routes_into_application.rb
|
374
|
+
- spec/support/match_json.rb
|