rails_api_auth 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +159 -2
- data/app/controllers/oauth2_controller.rb +9 -9
- data/app/lib/login_not_found.rb +3 -0
- data/app/models/login.rb +55 -8
- data/app/services/facebook_authenticator.rb +15 -10
- data/db/migrate/20150709221755_create_logins.rb +2 -1
- data/lib/rails_api_auth.rb +26 -0
- data/lib/rails_api_auth/authentication.rb +67 -11
- data/lib/rails_api_auth/engine.rb +1 -4
- data/lib/rails_api_auth/version.rb +1 -1
- data/spec/dummy/app/controllers/authenticated_controller.rb +2 -2
- data/spec/dummy/app/controllers/custom_authenticated_controller.rb +21 -0
- data/spec/dummy/app/models/account.rb +5 -0
- data/spec/dummy/config/application.rb +0 -2
- data/spec/dummy/config/environments/development.rb +2 -2
- data/spec/dummy/config/environments/production.rb +1 -1
- data/spec/dummy/config/environments/test.rb +1 -1
- data/spec/dummy/config/initializers/assets.rb +1 -1
- data/spec/dummy/config/initializers/cookies_serializer.rb +1 -1
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +1 -1
- data/spec/dummy/config/initializers/rails_api_auth.rb +8 -0
- data/spec/dummy/config/initializers/secret_token.rb +1 -0
- data/spec/dummy/config/initializers/session_store.rb +1 -1
- data/spec/dummy/config/routes.rb +2 -1
- data/spec/dummy/config/secrets.yml +1 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20150803185817_create_accounts.rb +12 -0
- data/spec/dummy/db/schema.rb +9 -9
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +21 -11
- data/spec/dummy/log/test.log +11767 -6995
- data/spec/factories/accounts.rb +6 -0
- data/spec/factories/logins.rb +2 -2
- data/spec/models/login_spec.rb +10 -10
- data/spec/requests/authenticated_spec.rb +29 -26
- data/spec/requests/custom_authenticated_spec.rb +45 -0
- data/spec/requests/oauth2_spec.rb +30 -34
- data/spec/services/facebook_authenticator_spec.rb +15 -17
- data/spec/spec_helper.rb +10 -3
- metadata +17 -38
- data/app/controllers/rails_api_auth/application_controller.rb +0 -7
- data/config/initializers/facebook.rb +0 -6
- data/lib/tasks/rails_api_auth_tasks.rake +0 -4
- data/spec/dummy/db/migrate/20150709221900_create_users.rb +0 -11
- data/spec/dummy/db/production.sqlite3 +0 -0
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.3
|
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: 2015-07
|
12
|
+
date: 2015-08-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -59,34 +59,6 @@ dependencies:
|
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 0.13.3
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: email_validator
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 1.6.0
|
69
|
-
type: :runtime
|
70
|
-
prerelease: false
|
71
|
-
version_requirements: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 1.6.0
|
76
|
-
- !ruby/object:Gem::Dependency
|
77
|
-
name: faker
|
78
|
-
requirement: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 1.4.3
|
83
|
-
type: :runtime
|
84
|
-
prerelease: false
|
85
|
-
version_requirements: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: 1.4.3
|
90
62
|
description: Rails API Auth is a Rails Engine that implements the "Resource Owner
|
91
63
|
Password Credentials Grant" OAuth 2.0 flow as well as Facebook authentication for
|
92
64
|
API projects.
|
@@ -100,24 +72,23 @@ files:
|
|
100
72
|
- README.md
|
101
73
|
- Rakefile
|
102
74
|
- app/controllers/oauth2_controller.rb
|
103
|
-
- app/controllers/rails_api_auth/application_controller.rb
|
104
75
|
- app/lib/login_not_found.rb
|
105
76
|
- app/models/login.rb
|
106
77
|
- app/services/facebook_authenticator.rb
|
107
|
-
- config/initializers/facebook.rb
|
108
78
|
- config/routes.rb
|
109
79
|
- db/migrate/20150709221755_create_logins.rb
|
110
80
|
- lib/rails_api_auth.rb
|
111
81
|
- lib/rails_api_auth/authentication.rb
|
112
82
|
- lib/rails_api_auth/engine.rb
|
113
83
|
- lib/rails_api_auth/version.rb
|
114
|
-
- lib/tasks/rails_api_auth_tasks.rake
|
115
84
|
- spec/dummy/README.rdoc
|
116
85
|
- spec/dummy/Rakefile
|
117
86
|
- spec/dummy/app/assets/javascripts/application.js
|
118
87
|
- spec/dummy/app/assets/stylesheets/application.css
|
119
88
|
- spec/dummy/app/controllers/application_controller.rb
|
120
89
|
- spec/dummy/app/controllers/authenticated_controller.rb
|
90
|
+
- spec/dummy/app/controllers/custom_authenticated_controller.rb
|
91
|
+
- spec/dummy/app/models/account.rb
|
121
92
|
- spec/dummy/bin/bundle
|
122
93
|
- spec/dummy/bin/rails
|
123
94
|
- spec/dummy/bin/rake
|
@@ -136,14 +107,15 @@ files:
|
|
136
107
|
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
137
108
|
- spec/dummy/config/initializers/inflections.rb
|
138
109
|
- spec/dummy/config/initializers/mime_types.rb
|
110
|
+
- spec/dummy/config/initializers/rails_api_auth.rb
|
111
|
+
- spec/dummy/config/initializers/secret_token.rb
|
139
112
|
- spec/dummy/config/initializers/session_store.rb
|
140
113
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
141
114
|
- spec/dummy/config/locales/en.yml
|
142
115
|
- spec/dummy/config/routes.rb
|
143
116
|
- spec/dummy/config/secrets.yml
|
144
117
|
- spec/dummy/db/development.sqlite3
|
145
|
-
- spec/dummy/db/migrate/
|
146
|
-
- spec/dummy/db/production.sqlite3
|
118
|
+
- spec/dummy/db/migrate/20150803185817_create_accounts.rb
|
147
119
|
- spec/dummy/db/schema.rb
|
148
120
|
- spec/dummy/db/test.sqlite3
|
149
121
|
- spec/dummy/log/development.log
|
@@ -152,9 +124,11 @@ files:
|
|
152
124
|
- spec/dummy/public/422.html
|
153
125
|
- spec/dummy/public/500.html
|
154
126
|
- spec/dummy/public/favicon.ico
|
127
|
+
- spec/factories/accounts.rb
|
155
128
|
- spec/factories/logins.rb
|
156
129
|
- spec/models/login_spec.rb
|
157
130
|
- spec/requests/authenticated_spec.rb
|
131
|
+
- spec/requests/custom_authenticated_spec.rb
|
158
132
|
- spec/requests/oauth2_spec.rb
|
159
133
|
- spec/services/facebook_authenticator_spec.rb
|
160
134
|
- spec/spec_helper.rb
|
@@ -179,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
179
153
|
version: '0'
|
180
154
|
requirements: []
|
181
155
|
rubyforge_project:
|
182
|
-
rubygems_version: 2.4.
|
156
|
+
rubygems_version: 2.4.5
|
183
157
|
signing_key:
|
184
158
|
specification_version: 4
|
185
159
|
summary: Engine that implements OAuth 2.0 and Facebook authentication for API projects
|
@@ -188,6 +162,8 @@ test_files:
|
|
188
162
|
- spec/dummy/app/assets/stylesheets/application.css
|
189
163
|
- spec/dummy/app/controllers/application_controller.rb
|
190
164
|
- spec/dummy/app/controllers/authenticated_controller.rb
|
165
|
+
- spec/dummy/app/controllers/custom_authenticated_controller.rb
|
166
|
+
- spec/dummy/app/models/account.rb
|
191
167
|
- spec/dummy/bin/bundle
|
192
168
|
- spec/dummy/bin/rails
|
193
169
|
- spec/dummy/bin/rake
|
@@ -205,6 +181,8 @@ test_files:
|
|
205
181
|
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
206
182
|
- spec/dummy/config/initializers/inflections.rb
|
207
183
|
- spec/dummy/config/initializers/mime_types.rb
|
184
|
+
- spec/dummy/config/initializers/rails_api_auth.rb
|
185
|
+
- spec/dummy/config/initializers/secret_token.rb
|
208
186
|
- spec/dummy/config/initializers/session_store.rb
|
209
187
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
210
188
|
- spec/dummy/config/locales/en.yml
|
@@ -212,8 +190,7 @@ test_files:
|
|
212
190
|
- spec/dummy/config/secrets.yml
|
213
191
|
- spec/dummy/config.ru
|
214
192
|
- spec/dummy/db/development.sqlite3
|
215
|
-
- spec/dummy/db/migrate/
|
216
|
-
- spec/dummy/db/production.sqlite3
|
193
|
+
- spec/dummy/db/migrate/20150803185817_create_accounts.rb
|
217
194
|
- spec/dummy/db/schema.rb
|
218
195
|
- spec/dummy/db/test.sqlite3
|
219
196
|
- spec/dummy/log/development.log
|
@@ -224,9 +201,11 @@ test_files:
|
|
224
201
|
- spec/dummy/public/favicon.ico
|
225
202
|
- spec/dummy/Rakefile
|
226
203
|
- spec/dummy/README.rdoc
|
204
|
+
- spec/factories/accounts.rb
|
227
205
|
- spec/factories/logins.rb
|
228
206
|
- spec/models/login_spec.rb
|
229
207
|
- spec/requests/authenticated_spec.rb
|
208
|
+
- spec/requests/custom_authenticated_spec.rb
|
230
209
|
- spec/requests/oauth2_spec.rb
|
231
210
|
- spec/services/facebook_authenticator_spec.rb
|
232
211
|
- spec/spec_helper.rb
|
File without changes
|