rails_api_auth 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +17 -6
- data/app/controllers/oauth2_controller.rb +12 -0
- data/app/models/login.rb +20 -22
- data/app/services/base_authenticator.rb +38 -0
- data/app/services/facebook_authenticator.rb +25 -44
- data/app/services/google_authenticator.rb +55 -0
- data/db/migrate/20150709221755_create_logins.rb +8 -2
- data/db/migrate/20150904110438_add_provider_to_login.rb +8 -0
- data/lib/rails_api_auth.rb +17 -4
- data/lib/rails_api_auth/authentication.rb +44 -7
- data/lib/rails_api_auth/engine.rb +4 -0
- data/lib/rails_api_auth/version.rb +1 -1
- data/spec/dummy/app/controllers/access_once_controller.rb +11 -0
- data/spec/dummy/app/controllers/authenticated_controller.rb +1 -3
- data/spec/dummy/app/controllers/custom_authenticated_controller.rb +1 -3
- data/spec/dummy/config/initializers/rails_api_auth.rb +4 -1
- data/spec/dummy/config/routes.rb +1 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +3 -2
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +26 -23
- data/spec/dummy/log/test.log +9402 -11504
- data/spec/factories/logins.rb +2 -1
- data/spec/models/login_spec.rb +9 -17
- data/spec/requests/access_once_spec.rb +66 -0
- data/spec/requests/authenticated_spec.rb +1 -1
- data/spec/requests/custom_authenticated_spec.rb +1 -1
- data/spec/requests/oauth2_spec.rb +19 -83
- data/spec/services/facebook_authenticator_spec.rb +8 -48
- data/spec/services/google_authenticator_spec.rb +12 -0
- data/spec/support/shared_contexts/stubbed_facebook_requests.rb +12 -0
- data/spec/support/shared_contexts/stubbed_google_requests.rb +11 -0
- data/spec/support/shared_examples/authenticator_shared_requests.rb +38 -0
- data/spec/support/shared_examples/oauth2_shared_requests.rb +80 -0
- metadata +20 -2
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_api_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marco Otte-Witte
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-03-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -74,9 +74,12 @@ files:
|
|
74
74
|
- app/controllers/oauth2_controller.rb
|
75
75
|
- app/lib/login_not_found.rb
|
76
76
|
- app/models/login.rb
|
77
|
+
- app/services/base_authenticator.rb
|
77
78
|
- app/services/facebook_authenticator.rb
|
79
|
+
- app/services/google_authenticator.rb
|
78
80
|
- config/routes.rb
|
79
81
|
- db/migrate/20150709221755_create_logins.rb
|
82
|
+
- db/migrate/20150904110438_add_provider_to_login.rb
|
80
83
|
- lib/rails_api_auth.rb
|
81
84
|
- lib/rails_api_auth/authentication.rb
|
82
85
|
- lib/rails_api_auth/engine.rb
|
@@ -85,6 +88,7 @@ files:
|
|
85
88
|
- spec/dummy/Rakefile
|
86
89
|
- spec/dummy/app/assets/javascripts/application.js
|
87
90
|
- spec/dummy/app/assets/stylesheets/application.css
|
91
|
+
- spec/dummy/app/controllers/access_once_controller.rb
|
88
92
|
- spec/dummy/app/controllers/application_controller.rb
|
89
93
|
- spec/dummy/app/controllers/authenticated_controller.rb
|
90
94
|
- spec/dummy/app/controllers/custom_authenticated_controller.rb
|
@@ -127,12 +131,18 @@ files:
|
|
127
131
|
- spec/factories/accounts.rb
|
128
132
|
- spec/factories/logins.rb
|
129
133
|
- spec/models/login_spec.rb
|
134
|
+
- spec/requests/access_once_spec.rb
|
130
135
|
- spec/requests/authenticated_spec.rb
|
131
136
|
- spec/requests/custom_authenticated_spec.rb
|
132
137
|
- spec/requests/oauth2_spec.rb
|
133
138
|
- spec/services/facebook_authenticator_spec.rb
|
139
|
+
- spec/services/google_authenticator_spec.rb
|
134
140
|
- spec/spec_helper.rb
|
135
141
|
- spec/support/factory_girl.rb
|
142
|
+
- spec/support/shared_contexts/stubbed_facebook_requests.rb
|
143
|
+
- spec/support/shared_contexts/stubbed_google_requests.rb
|
144
|
+
- spec/support/shared_examples/authenticator_shared_requests.rb
|
145
|
+
- spec/support/shared_examples/oauth2_shared_requests.rb
|
136
146
|
homepage: https://github.com/simplabs/rails-api-auth
|
137
147
|
licenses:
|
138
148
|
- MIT
|
@@ -160,6 +170,7 @@ summary: Engine that implements OAuth 2.0 and Facebook authentication for API pr
|
|
160
170
|
test_files:
|
161
171
|
- spec/dummy/app/assets/javascripts/application.js
|
162
172
|
- spec/dummy/app/assets/stylesheets/application.css
|
173
|
+
- spec/dummy/app/controllers/access_once_controller.rb
|
163
174
|
- spec/dummy/app/controllers/application_controller.rb
|
164
175
|
- spec/dummy/app/controllers/authenticated_controller.rb
|
165
176
|
- spec/dummy/app/controllers/custom_authenticated_controller.rb
|
@@ -204,9 +215,16 @@ test_files:
|
|
204
215
|
- spec/factories/accounts.rb
|
205
216
|
- spec/factories/logins.rb
|
206
217
|
- spec/models/login_spec.rb
|
218
|
+
- spec/requests/access_once_spec.rb
|
207
219
|
- spec/requests/authenticated_spec.rb
|
208
220
|
- spec/requests/custom_authenticated_spec.rb
|
209
221
|
- spec/requests/oauth2_spec.rb
|
210
222
|
- spec/services/facebook_authenticator_spec.rb
|
223
|
+
- spec/services/google_authenticator_spec.rb
|
211
224
|
- spec/spec_helper.rb
|
212
225
|
- spec/support/factory_girl.rb
|
226
|
+
- spec/support/shared_contexts/stubbed_facebook_requests.rb
|
227
|
+
- spec/support/shared_contexts/stubbed_google_requests.rb
|
228
|
+
- spec/support/shared_examples/authenticator_shared_requests.rb
|
229
|
+
- spec/support/shared_examples/oauth2_shared_requests.rb
|
230
|
+
has_rdoc:
|