simple_token_authentication 1.15.1 → 1.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Appraisals +8 -1
- data/CHANGELOG.md +13 -2
- data/README.md +1 -2
- data/gemfiles/rails_4_devise_3.gemfile +1 -1
- data/gemfiles/rails_5_devise_4.gemfile +5 -1
- data/gemfiles/rails_6_devise_4.gemfile +5 -0
- data/gemfiles/ruby_1.9.3_rails_3.2.gemfile +2 -1
- data/gemfiles/ruby_1.9.3_rails_3.2.gemfile.lock +151 -0
- data/lib/simple_token_authentication/adapters/mongoid_adapter.rb +15 -8
- data/lib/simple_token_authentication/version.rb +1 -1
- data/spec/lib/simple_token_authentication/adapters/mongoid_adapter_spec.rb +19 -12
- data/spec/spec_helper.rb +0 -1
- metadata +35 -36
- data/gemfiles/rails_4_devise_3.gemfile.lock +0 -159
- data/gemfiles/rails_5_devise_4.gemfile.lock +0 -148
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8bc0741a8131ad48630b8bb3345019f919c75e1769a388badc6a792c0a8df1d9
|
4
|
+
data.tar.gz: 3c16e640c7a375842014da535057423e3703a8a15ab6c32e88b474a19e35d9d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97829022feabbc2954756233afab28c9e3798b2c35caeb47e9dc08ae56f0418971e6277dabeda332702b14f5711a655d26ffd0438cf6e9a86aebfc57cbf2d181
|
7
|
+
data.tar.gz: 9f2056cf58347adffd333adf81462b6db44d1970ab6e54c5e10a31f1bf56bc4cd5adfb464df8a75f36b0e70fa75247387a5228c27b491804802b0b87e11e82af
|
data/Appraisals
CHANGED
@@ -1,7 +1,13 @@
|
|
1
|
-
appraise '
|
1
|
+
appraise 'rails_6_devise_4' do
|
2
2
|
# use gemspec constraints
|
3
3
|
end
|
4
4
|
|
5
|
+
appraise 'rails_5_devise_4' do
|
6
|
+
gem 'actionmailer', '~> 5.0'
|
7
|
+
gem 'actionpack', '~> 5.0'
|
8
|
+
gem 'activerecord', '~> 5.0'
|
9
|
+
end
|
10
|
+
|
5
11
|
appraise 'rails_4_devise_3' do
|
6
12
|
gem 'actionmailer', '~> 4.0'
|
7
13
|
gem 'actionpack', '~> 4.0'
|
@@ -16,4 +22,5 @@ appraise 'ruby_1.9.3_rails_3.2' do
|
|
16
22
|
gem 'mime-types', '< 3'
|
17
23
|
gem 'term-ansicolor', '~> 1.3.0'
|
18
24
|
gem 'tins', '< 1.7.0'
|
25
|
+
gem 'yard', '<= 0.9.5'
|
19
26
|
end
|
data/CHANGELOG.md
CHANGED
@@ -3,9 +3,19 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
5
5
|
|
6
|
+
## [1.16.0] - 2019-08-20
|
7
|
+
|
8
|
+
### Added
|
9
|
+
|
10
|
+
- Add Rails 6 support - @MatthiasRMS
|
11
|
+
|
12
|
+
### Fixed
|
13
|
+
|
14
|
+
- Removed the `Gemfile.lock` - mostly to acknowledge that it was used only in development and is not really needed.
|
15
|
+
|
6
16
|
## [1.15.1] - 2017-01-26
|
7
17
|
|
8
|
-
|
18
|
+
### Fixed
|
9
19
|
|
10
20
|
- Work around [jbuilder][jbuilder] issues caused by the Rails API adapter - @IvRRimum with help from @Pepan
|
11
21
|
|
@@ -268,6 +278,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
268
278
|
This [gist][gist] did refactor the Jose Valim's code into an `ActiveSupport::Concern`.
|
269
279
|
|
270
280
|
[gist]: https://gist.github.com/gonzalo-bulnes/7659739
|
281
|
+
[Unreleased]: https://github.com/gonzalo-bulnes/simple_token_authentication/compare/v1.16.0...master
|
282
|
+
[1.16.0]: https://github.com/gonzalo-bulnes/simple_token_authentication/compare/v1.15.1...v1.16.0
|
271
283
|
[1.15.1]: https://github.com/gonzalo-bulnes/simple_token_authentication/compare/v1.15.0...v1.15.1
|
272
284
|
[1.15.0]: https://github.com/gonzalo-bulnes/simple_token_authentication/compare/v1.14.0...v1.15.0
|
273
285
|
[1.14.0]: https://github.com/gonzalo-bulnes/simple_token_authentication/compare/v1.13.0...v1.14.0
|
@@ -300,4 +312,3 @@ This [gist][gist] did refactor the Jose Valim's code into an `ActiveSupport::Con
|
|
300
312
|
## Inspiration
|
301
313
|
|
302
314
|
Thanks to @nTraum for pointing me at http://keepachangelog.com and to @olivierlacan for writing it in the first place!
|
303
|
-
|
data/README.md
CHANGED
@@ -4,8 +4,7 @@ Simple Token Authentication
|
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/simple_token_authentication.svg)](http://badge.fury.io/rb/simple_token_authentication)
|
5
5
|
[![Build Status](https://travis-ci.org/gonzalo-bulnes/simple_token_authentication.svg?branch=master)](https://travis-ci.org/gonzalo-bulnes/simple_token_authentication)
|
6
6
|
[![Code Climate](https://codeclimate.com/github/gonzalo-bulnes/simple_token_authentication.svg)](https://codeclimate.com/github/gonzalo-bulnes/simple_token_authentication)
|
7
|
-
[![
|
8
|
-
[![security](https://hakiri.io/github/gonzalo-bulnes/simple_token_authentication/master.svg)](https://hakiri.io/github/gonzalo-bulnes/simple_token_authentication/master)
|
7
|
+
[![Security](https://hakiri.io/github/gonzalo-bulnes/simple_token_authentication/master.svg)](https://hakiri.io/github/gonzalo-bulnes/simple_token_authentication/master)
|
9
8
|
[![Inline docs](http://inch-ci.org/github/gonzalo-bulnes/simple_token_authentication.svg?branch=master)](http://inch-ci.org/github/gonzalo-bulnes/simple_token_authentication)
|
10
9
|
|
11
10
|
Token authentication support has been removed from [Devise][devise] for security reasons. In [this gist][original-gist], Devise's [José Valim][josevalim] explains how token authentication should be performed in order to remain safe.
|
@@ -0,0 +1,151 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
simple_token_authentication (1.15.1)
|
5
|
+
actionmailer (>= 3.2.6, < 7)
|
6
|
+
actionpack (>= 3.2.6, < 7)
|
7
|
+
devise (>= 3.2, < 6)
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: https://rubygems.org/
|
11
|
+
specs:
|
12
|
+
actionmailer (3.2.22.8)
|
13
|
+
actionpack (= 3.2.22.8)
|
14
|
+
mail (~> 2.5.4)
|
15
|
+
actionpack (3.2.22.8)
|
16
|
+
activemodel (= 3.2.22.8)
|
17
|
+
activesupport (= 3.2.22.8)
|
18
|
+
builder (~> 3.0)
|
19
|
+
erubis (~> 2.7.0)
|
20
|
+
journey (~> 1.0.4)
|
21
|
+
rack (~> 1.4.5)
|
22
|
+
rack-cache (~> 1.2)
|
23
|
+
rack-test (~> 0.6.1)
|
24
|
+
sprockets (~> 2.2.1)
|
25
|
+
activemodel (3.2.22.8)
|
26
|
+
activesupport (= 3.2.22.8)
|
27
|
+
builder (~> 3.0)
|
28
|
+
activerecord (3.2.22.8)
|
29
|
+
activemodel (= 3.2.22.8)
|
30
|
+
activesupport (= 3.2.22.8)
|
31
|
+
arel (~> 3.0.2)
|
32
|
+
tzinfo (~> 0.3.29)
|
33
|
+
activesupport (3.2.22.8)
|
34
|
+
i18n (~> 0.6, >= 0.6.4)
|
35
|
+
multi_json (~> 1.0)
|
36
|
+
appraisal (2.2.0)
|
37
|
+
bundler
|
38
|
+
rake
|
39
|
+
thor (>= 0.14.0)
|
40
|
+
arel (3.0.3)
|
41
|
+
bcrypt (3.1.13)
|
42
|
+
builder (3.2.3)
|
43
|
+
coderay (1.1.2)
|
44
|
+
concurrent-ruby (1.1.5)
|
45
|
+
devise (3.5.10)
|
46
|
+
bcrypt (~> 3.0)
|
47
|
+
orm_adapter (~> 0.1)
|
48
|
+
railties (>= 3.2.6, < 5)
|
49
|
+
responders
|
50
|
+
thread_safe (~> 0.1)
|
51
|
+
warden (~> 1.2.3)
|
52
|
+
diff-lcs (1.3)
|
53
|
+
erubis (2.7.0)
|
54
|
+
hike (1.2.3)
|
55
|
+
i18n (0.9.5)
|
56
|
+
concurrent-ruby (~> 1.0)
|
57
|
+
inch (0.8.0)
|
58
|
+
pry
|
59
|
+
sparkr (>= 0.2.0)
|
60
|
+
term-ansicolor
|
61
|
+
yard (~> 0.9.12)
|
62
|
+
journey (1.0.4)
|
63
|
+
json (1.8.6)
|
64
|
+
mail (2.5.5)
|
65
|
+
mime-types (~> 1.16)
|
66
|
+
treetop (~> 1.4.8)
|
67
|
+
method_source (0.9.2)
|
68
|
+
mime-types (1.25.1)
|
69
|
+
mongoid (3.1.7)
|
70
|
+
activemodel (~> 3.2)
|
71
|
+
moped (~> 1.4)
|
72
|
+
origin (~> 1.0)
|
73
|
+
tzinfo (~> 0.3.29)
|
74
|
+
moped (1.5.3)
|
75
|
+
multi_json (1.13.1)
|
76
|
+
origin (1.1.0)
|
77
|
+
orm_adapter (0.5.0)
|
78
|
+
polyglot (0.3.5)
|
79
|
+
pry (0.12.2)
|
80
|
+
coderay (~> 1.1.0)
|
81
|
+
method_source (~> 0.9.0)
|
82
|
+
rack (1.4.7)
|
83
|
+
rack-cache (1.7.1)
|
84
|
+
rack (>= 0.4)
|
85
|
+
rack-ssl (1.3.4)
|
86
|
+
rack
|
87
|
+
rack-test (0.6.3)
|
88
|
+
rack (>= 1.0)
|
89
|
+
railties (3.2.22.8)
|
90
|
+
actionpack (= 3.2.22.8)
|
91
|
+
activesupport (= 3.2.22.8)
|
92
|
+
rack-ssl (~> 1.3.2)
|
93
|
+
rake (>= 0.8.7)
|
94
|
+
rdoc (~> 3.4)
|
95
|
+
thor (>= 0.14.6, < 2.0)
|
96
|
+
rake (12.2.1)
|
97
|
+
rdoc (3.12.2)
|
98
|
+
json (~> 1.4)
|
99
|
+
responders (1.1.2)
|
100
|
+
railties (>= 3.2, < 4.2)
|
101
|
+
rspec (3.8.0)
|
102
|
+
rspec-core (~> 3.8.0)
|
103
|
+
rspec-expectations (~> 3.8.0)
|
104
|
+
rspec-mocks (~> 3.8.0)
|
105
|
+
rspec-core (3.8.2)
|
106
|
+
rspec-support (~> 3.8.0)
|
107
|
+
rspec-expectations (3.8.4)
|
108
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
109
|
+
rspec-support (~> 3.8.0)
|
110
|
+
rspec-mocks (3.8.1)
|
111
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
112
|
+
rspec-support (~> 3.8.0)
|
113
|
+
rspec-support (3.8.2)
|
114
|
+
sparkr (0.4.1)
|
115
|
+
sprockets (2.2.3)
|
116
|
+
hike (~> 1.2)
|
117
|
+
multi_json (~> 1.0)
|
118
|
+
rack (~> 1.0)
|
119
|
+
tilt (~> 1.1, != 1.3.0)
|
120
|
+
term-ansicolor (1.3.2)
|
121
|
+
tins (~> 1.0)
|
122
|
+
thor (0.20.3)
|
123
|
+
thread_safe (0.3.6)
|
124
|
+
tilt (1.4.1)
|
125
|
+
tins (1.6.0)
|
126
|
+
treetop (1.4.15)
|
127
|
+
polyglot
|
128
|
+
polyglot (>= 0.3.1)
|
129
|
+
tzinfo (0.3.55)
|
130
|
+
warden (1.2.7)
|
131
|
+
rack (>= 1.0)
|
132
|
+
yard (0.9.20)
|
133
|
+
|
134
|
+
PLATFORMS
|
135
|
+
ruby
|
136
|
+
|
137
|
+
DEPENDENCIES
|
138
|
+
actionmailer (>= 3.2.6, < 4)
|
139
|
+
actionpack (>= 3.2.6, < 4)
|
140
|
+
activerecord (>= 3.2.15, < 4)
|
141
|
+
appraisal (~> 2.0)
|
142
|
+
inch (~> 0.4)
|
143
|
+
mime-types (< 3)
|
144
|
+
mongoid (>= 3.1.0, < 7)
|
145
|
+
rspec (~> 3.0)
|
146
|
+
simple_token_authentication!
|
147
|
+
term-ansicolor (~> 1.3.0)
|
148
|
+
tins (< 1.7.0)
|
149
|
+
|
150
|
+
BUNDLED WITH
|
151
|
+
1.16.1
|
@@ -1,13 +1,20 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
if Module.const_defined?('ActiveModel') &&
|
2
|
+
ActiveModel.const_defined?('Serializers') &&
|
3
|
+
ActiveModel::Serializers.const_defined?('Xml')
|
4
|
+
# As far as I know Mongoid doesn't support Rails 6
|
5
|
+
# Please let me know if this isn't true when you read it!
|
3
6
|
|
4
|
-
|
5
|
-
|
6
|
-
class MongoidAdapter
|
7
|
-
extend SimpleTokenAuthentication::Adapter
|
7
|
+
require 'mongoid'
|
8
|
+
require 'simple_token_authentication/adapter'
|
8
9
|
|
9
|
-
|
10
|
-
|
10
|
+
module SimpleTokenAuthentication
|
11
|
+
module Adapters
|
12
|
+
class MongoidAdapter
|
13
|
+
extend SimpleTokenAuthentication::Adapter
|
14
|
+
|
15
|
+
def self.base_class
|
16
|
+
::Mongoid::Document
|
17
|
+
end
|
11
18
|
end
|
12
19
|
end
|
13
20
|
end
|
@@ -1,21 +1,28 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
if Module.const_defined?('ActiveModel') &&
|
2
|
+
ActiveModel.const_defined?('Serializers') &&
|
3
|
+
ActiveModel::Serializers.const_defined?('Xml')
|
4
|
+
# As far as I know Mongoid doesn't support Rails 6
|
5
|
+
# Please let me know if this isn't true when you read it!
|
3
6
|
|
4
|
-
|
7
|
+
require 'spec_helper'
|
8
|
+
require 'simple_token_authentication/adapters/mongoid_adapter'
|
5
9
|
|
6
|
-
|
7
|
-
stub_const('Mongoid', Module.new)
|
8
|
-
stub_const('Mongoid::Document', double())
|
10
|
+
describe 'SimpleTokenAuthentication::Adapters::MongoidAdapter' do
|
9
11
|
|
10
|
-
|
11
|
-
|
12
|
+
before(:each) do
|
13
|
+
stub_const('Mongoid', Module.new)
|
14
|
+
stub_const('Mongoid::Document', double())
|
15
|
+
|
16
|
+
@subject = SimpleTokenAuthentication::Adapters::MongoidAdapter
|
17
|
+
end
|
12
18
|
|
13
|
-
|
19
|
+
it_behaves_like 'an adapter'
|
14
20
|
|
15
|
-
|
21
|
+
describe '.base_class' do
|
16
22
|
|
17
|
-
|
18
|
-
|
23
|
+
it 'is Mongoid::Document', private: true do
|
24
|
+
expect(@subject.base_class).to eq Mongoid::Document
|
25
|
+
end
|
19
26
|
end
|
20
27
|
end
|
21
28
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_token_authentication
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gonzalo Bulnes Guilpain
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionmailer
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: 3.2.6
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '7'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: 3.2.6
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '7'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: actionpack
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
version: 3.2.6
|
40
40
|
- - "<"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
42
|
+
version: '7'
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -49,7 +49,7 @@ dependencies:
|
|
49
49
|
version: 3.2.6
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: '
|
52
|
+
version: '7'
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: devise
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -107,7 +107,7 @@ dependencies:
|
|
107
107
|
version: 3.2.6
|
108
108
|
- - "<"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '7'
|
111
111
|
type: :development
|
112
112
|
prerelease: false
|
113
113
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -117,7 +117,7 @@ dependencies:
|
|
117
117
|
version: 3.2.6
|
118
118
|
- - "<"
|
119
119
|
- !ruby/object:Gem::Version
|
120
|
-
version: '
|
120
|
+
version: '7'
|
121
121
|
- !ruby/object:Gem::Dependency
|
122
122
|
name: mongoid
|
123
123
|
requirement: !ruby/object:Gem::Requirement
|
@@ -166,10 +166,10 @@ files:
|
|
166
166
|
- Rakefile
|
167
167
|
- doc/README.md
|
168
168
|
- gemfiles/rails_4_devise_3.gemfile
|
169
|
-
- gemfiles/rails_4_devise_3.gemfile.lock
|
170
169
|
- gemfiles/rails_5_devise_4.gemfile
|
171
|
-
- gemfiles/
|
170
|
+
- gemfiles/rails_6_devise_4.gemfile
|
172
171
|
- gemfiles/ruby_1.9.3_rails_3.2.gemfile
|
172
|
+
- gemfiles/ruby_1.9.3_rails_3.2.gemfile.lock
|
173
173
|
- lib/simple_token_authentication.rb
|
174
174
|
- lib/simple_token_authentication/acts_as_token_authenticatable.rb
|
175
175
|
- lib/simple_token_authentication/acts_as_token_authentication_handler.rb
|
@@ -245,50 +245,49 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
245
245
|
version: '0'
|
246
246
|
requirements: []
|
247
247
|
rubyforge_project:
|
248
|
-
rubygems_version: 2.
|
248
|
+
rubygems_version: 2.7.6
|
249
249
|
signing_key:
|
250
250
|
specification_version: 4
|
251
251
|
summary: Simple (but safe) token authentication for Rails apps or API with Devise.
|
252
252
|
test_files:
|
253
|
-
- spec/
|
254
|
-
- spec/configuration/fallback_to_devise_option_spec.rb
|
255
|
-
- spec/configuration/header_names_option_spec.rb
|
256
|
-
- spec/configuration/sign_in_token_option_spec.rb
|
257
|
-
- spec/configuration/skip_devise_trackable_option_spec.rb
|
258
|
-
- spec/lib/simple_token_authentication/acts_as_token_authenticatable_spec.rb
|
253
|
+
- spec/lib/simple_token_authentication/configuration_spec.rb
|
259
254
|
- spec/lib/simple_token_authentication/acts_as_token_authentication_handler_spec.rb
|
255
|
+
- spec/lib/simple_token_authentication/token_authentication_handler_spec.rb
|
256
|
+
- spec/lib/simple_token_authentication/errors_spec.rb
|
257
|
+
- spec/lib/simple_token_authentication/devise_fallback_handler_spec.rb
|
260
258
|
- spec/lib/simple_token_authentication/adapter_spec.rb
|
261
|
-
- spec/lib/simple_token_authentication/
|
262
|
-
- spec/lib/simple_token_authentication/
|
259
|
+
- spec/lib/simple_token_authentication/acts_as_token_authenticatable_spec.rb
|
260
|
+
- spec/lib/simple_token_authentication/entity_spec.rb
|
263
261
|
- spec/lib/simple_token_authentication/adapters/rails_adapter_spec.rb
|
262
|
+
- spec/lib/simple_token_authentication/adapters/active_record_adapter_spec.rb
|
264
263
|
- spec/lib/simple_token_authentication/adapters/rails_api_adapter_spec.rb
|
265
264
|
- spec/lib/simple_token_authentication/adapters/rails_metal_adapter_spec.rb
|
266
|
-
- spec/lib/simple_token_authentication/
|
267
|
-
- spec/lib/simple_token_authentication/devise_fallback_handler_spec.rb
|
268
|
-
- spec/lib/simple_token_authentication/entities_manager_spec.rb
|
269
|
-
- spec/lib/simple_token_authentication/entity_spec.rb
|
270
|
-
- spec/lib/simple_token_authentication/errors_spec.rb
|
265
|
+
- spec/lib/simple_token_authentication/adapters/mongoid_adapter_spec.rb
|
271
266
|
- spec/lib/simple_token_authentication/exception_fallback_handler_spec.rb
|
272
|
-
- spec/lib/simple_token_authentication/sign_in_handler_spec.rb
|
273
|
-
- spec/lib/simple_token_authentication/token_authentication_handler_spec.rb
|
274
267
|
- spec/lib/simple_token_authentication/token_comparator_spec.rb
|
268
|
+
- spec/lib/simple_token_authentication/entities_manager_spec.rb
|
275
269
|
- spec/lib/simple_token_authentication/token_generator_spec.rb
|
270
|
+
- spec/lib/simple_token_authentication/sign_in_handler_spec.rb
|
276
271
|
- spec/lib/simple_token_authentication_spec.rb
|
277
272
|
- spec/spec_helper.rb
|
278
|
-
- spec/
|
279
|
-
- spec/
|
273
|
+
- spec/configuration/sign_in_token_option_spec.rb
|
274
|
+
- spec/configuration/skip_devise_trackable_option_spec.rb
|
275
|
+
- spec/configuration/fallback_to_devise_option_spec.rb
|
276
|
+
- spec/configuration/header_names_option_spec.rb
|
277
|
+
- spec/configuration/action_controller_callbacks_options_spec.rb
|
278
|
+
- spec/support/spec_for_token_generator_interface.rb
|
280
279
|
- spec/support/spec_for_authentication_handler_interface.rb
|
281
280
|
- spec/support/spec_for_configuration_option_interface.rb
|
282
|
-
- spec/support/spec_for_entities_manager_interface.rb
|
283
|
-
- spec/support/spec_for_fallback_handler_interface.rb
|
284
281
|
- spec/support/spec_for_sign_in_handler_interface.rb
|
285
|
-
- spec/support/
|
286
|
-
- spec/support/
|
282
|
+
- spec/support/spec_for_fallback_handler_interface.rb
|
283
|
+
- spec/support/dummy_classes_helper.rb
|
287
284
|
- spec/support/specs_for_token_authentication_handler_interface.rb
|
288
|
-
-
|
285
|
+
- spec/support/spec_for_token_comparator_interface.rb
|
286
|
+
- spec/support/spec_for_entities_manager_interface.rb
|
287
|
+
- spec/support/spec_for_adapter.rb
|
289
288
|
- gemfiles/rails_5_devise_4.gemfile
|
289
|
+
- gemfiles/rails_6_devise_4.gemfile
|
290
290
|
- gemfiles/ruby_1.9.3_rails_3.2.gemfile
|
291
|
-
- gemfiles/rails_4_devise_3.gemfile
|
292
|
-
- gemfiles/
|
291
|
+
- gemfiles/rails_4_devise_3.gemfile
|
292
|
+
- gemfiles/ruby_1.9.3_rails_3.2.gemfile.lock
|
293
293
|
- Appraisals
|
294
|
-
has_rdoc:
|
@@ -1,159 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ../
|
3
|
-
specs:
|
4
|
-
simple_token_authentication (1.15.0)
|
5
|
-
actionmailer (>= 3.2.6, < 6)
|
6
|
-
actionpack (>= 3.2.6, < 6)
|
7
|
-
devise (>= 3.2, < 6)
|
8
|
-
|
9
|
-
GEM
|
10
|
-
remote: https://rubygems.org/
|
11
|
-
specs:
|
12
|
-
actionmailer (4.2.7.1)
|
13
|
-
actionpack (= 4.2.7.1)
|
14
|
-
actionview (= 4.2.7.1)
|
15
|
-
activejob (= 4.2.7.1)
|
16
|
-
mail (~> 2.5, >= 2.5.4)
|
17
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
18
|
-
actionpack (4.2.7.1)
|
19
|
-
actionview (= 4.2.7.1)
|
20
|
-
activesupport (= 4.2.7.1)
|
21
|
-
rack (~> 1.6)
|
22
|
-
rack-test (~> 0.6.2)
|
23
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
24
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
25
|
-
actionview (4.2.7.1)
|
26
|
-
activesupport (= 4.2.7.1)
|
27
|
-
builder (~> 3.1)
|
28
|
-
erubis (~> 2.7.0)
|
29
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
30
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
31
|
-
activejob (4.2.7.1)
|
32
|
-
activesupport (= 4.2.7.1)
|
33
|
-
globalid (>= 0.3.0)
|
34
|
-
activemodel (4.2.7.1)
|
35
|
-
activesupport (= 4.2.7.1)
|
36
|
-
builder (~> 3.1)
|
37
|
-
activerecord (4.2.7.1)
|
38
|
-
activemodel (= 4.2.7.1)
|
39
|
-
activesupport (= 4.2.7.1)
|
40
|
-
arel (~> 6.0)
|
41
|
-
activesupport (4.2.7.1)
|
42
|
-
i18n (~> 0.7)
|
43
|
-
json (~> 1.7, >= 1.7.7)
|
44
|
-
minitest (~> 5.1)
|
45
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
46
|
-
tzinfo (~> 1.1)
|
47
|
-
appraisal (2.1.0)
|
48
|
-
bundler
|
49
|
-
rake
|
50
|
-
thor (>= 0.14.0)
|
51
|
-
arel (6.0.4)
|
52
|
-
bcrypt (3.1.11)
|
53
|
-
bson (4.2.1)
|
54
|
-
builder (3.2.3)
|
55
|
-
coderay (1.1.1)
|
56
|
-
devise (3.5.10)
|
57
|
-
bcrypt (~> 3.0)
|
58
|
-
orm_adapter (~> 0.1)
|
59
|
-
railties (>= 3.2.6, < 5)
|
60
|
-
responders
|
61
|
-
thread_safe (~> 0.1)
|
62
|
-
warden (~> 1.2.3)
|
63
|
-
diff-lcs (1.2.5)
|
64
|
-
erubis (2.7.0)
|
65
|
-
globalid (0.3.7)
|
66
|
-
activesupport (>= 4.1.0)
|
67
|
-
i18n (0.7.0)
|
68
|
-
inch (0.7.1)
|
69
|
-
pry
|
70
|
-
sparkr (>= 0.2.0)
|
71
|
-
term-ansicolor
|
72
|
-
yard (~> 0.8.7.5)
|
73
|
-
json (1.8.6)
|
74
|
-
loofah (2.0.3)
|
75
|
-
nokogiri (>= 1.5.9)
|
76
|
-
mail (2.6.4)
|
77
|
-
mime-types (>= 1.16, < 4)
|
78
|
-
method_source (0.8.2)
|
79
|
-
mime-types (3.1)
|
80
|
-
mime-types-data (~> 3.2015)
|
81
|
-
mime-types-data (3.2016.0521)
|
82
|
-
mini_portile2 (2.1.0)
|
83
|
-
minitest (5.10.1)
|
84
|
-
mongo (2.4.1)
|
85
|
-
bson (>= 4.2.1, < 5.0.0)
|
86
|
-
mongoid (5.1.6)
|
87
|
-
activemodel (~> 4.0)
|
88
|
-
mongo (~> 2.1)
|
89
|
-
origin (~> 2.2)
|
90
|
-
tzinfo (>= 0.3.37)
|
91
|
-
nokogiri (1.7.0.1)
|
92
|
-
mini_portile2 (~> 2.1.0)
|
93
|
-
origin (2.3.0)
|
94
|
-
orm_adapter (0.5.0)
|
95
|
-
pry (0.10.4)
|
96
|
-
coderay (~> 1.1.0)
|
97
|
-
method_source (~> 0.8.1)
|
98
|
-
slop (~> 3.4)
|
99
|
-
rack (1.6.5)
|
100
|
-
rack-test (0.6.3)
|
101
|
-
rack (>= 1.0)
|
102
|
-
rails-deprecated_sanitizer (1.0.3)
|
103
|
-
activesupport (>= 4.2.0.alpha)
|
104
|
-
rails-dom-testing (1.0.8)
|
105
|
-
activesupport (>= 4.2.0.beta, < 5.0)
|
106
|
-
nokogiri (~> 1.6)
|
107
|
-
rails-deprecated_sanitizer (>= 1.0.1)
|
108
|
-
rails-html-sanitizer (1.0.3)
|
109
|
-
loofah (~> 2.0)
|
110
|
-
railties (4.2.7.1)
|
111
|
-
actionpack (= 4.2.7.1)
|
112
|
-
activesupport (= 4.2.7.1)
|
113
|
-
rake (>= 0.8.7)
|
114
|
-
thor (>= 0.18.1, < 2.0)
|
115
|
-
rake (12.0.0)
|
116
|
-
responders (2.3.0)
|
117
|
-
railties (>= 4.2.0, < 5.1)
|
118
|
-
rspec (3.5.0)
|
119
|
-
rspec-core (~> 3.5.0)
|
120
|
-
rspec-expectations (~> 3.5.0)
|
121
|
-
rspec-mocks (~> 3.5.0)
|
122
|
-
rspec-core (3.5.4)
|
123
|
-
rspec-support (~> 3.5.0)
|
124
|
-
rspec-expectations (3.5.0)
|
125
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
126
|
-
rspec-support (~> 3.5.0)
|
127
|
-
rspec-mocks (3.5.0)
|
128
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
129
|
-
rspec-support (~> 3.5.0)
|
130
|
-
rspec-support (3.5.0)
|
131
|
-
slop (3.6.0)
|
132
|
-
sparkr (0.4.1)
|
133
|
-
term-ansicolor (1.4.0)
|
134
|
-
tins (~> 1.0)
|
135
|
-
thor (0.19.4)
|
136
|
-
thread_safe (0.3.5)
|
137
|
-
tins (1.13.0)
|
138
|
-
tzinfo (1.2.2)
|
139
|
-
thread_safe (~> 0.1)
|
140
|
-
warden (1.2.6)
|
141
|
-
rack (>= 1.0)
|
142
|
-
yard (0.8.7.6)
|
143
|
-
|
144
|
-
PLATFORMS
|
145
|
-
ruby
|
146
|
-
|
147
|
-
DEPENDENCIES
|
148
|
-
actionmailer (~> 4.0)
|
149
|
-
actionpack (~> 4.0)
|
150
|
-
activerecord (~> 4.0)
|
151
|
-
appraisal (~> 2.0)
|
152
|
-
devise (~> 3.2)
|
153
|
-
inch (~> 0.4)
|
154
|
-
mongoid (>= 3.1.0, < 7)
|
155
|
-
rspec (~> 3.0)
|
156
|
-
simple_token_authentication!
|
157
|
-
|
158
|
-
BUNDLED WITH
|
159
|
-
1.13.6
|
@@ -1,148 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ../
|
3
|
-
specs:
|
4
|
-
simple_token_authentication (1.15.0)
|
5
|
-
actionmailer (>= 3.2.6, < 6)
|
6
|
-
actionpack (>= 3.2.6, < 6)
|
7
|
-
devise (>= 3.2, < 6)
|
8
|
-
|
9
|
-
GEM
|
10
|
-
remote: https://rubygems.org/
|
11
|
-
specs:
|
12
|
-
actionmailer (5.0.1)
|
13
|
-
actionpack (= 5.0.1)
|
14
|
-
actionview (= 5.0.1)
|
15
|
-
activejob (= 5.0.1)
|
16
|
-
mail (~> 2.5, >= 2.5.4)
|
17
|
-
rails-dom-testing (~> 2.0)
|
18
|
-
actionpack (5.0.1)
|
19
|
-
actionview (= 5.0.1)
|
20
|
-
activesupport (= 5.0.1)
|
21
|
-
rack (~> 2.0)
|
22
|
-
rack-test (~> 0.6.3)
|
23
|
-
rails-dom-testing (~> 2.0)
|
24
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
25
|
-
actionview (5.0.1)
|
26
|
-
activesupport (= 5.0.1)
|
27
|
-
builder (~> 3.1)
|
28
|
-
erubis (~> 2.7.0)
|
29
|
-
rails-dom-testing (~> 2.0)
|
30
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
31
|
-
activejob (5.0.1)
|
32
|
-
activesupport (= 5.0.1)
|
33
|
-
globalid (>= 0.3.6)
|
34
|
-
activemodel (5.0.1)
|
35
|
-
activesupport (= 5.0.1)
|
36
|
-
activerecord (5.0.1)
|
37
|
-
activemodel (= 5.0.1)
|
38
|
-
activesupport (= 5.0.1)
|
39
|
-
arel (~> 7.0)
|
40
|
-
activesupport (5.0.1)
|
41
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
42
|
-
i18n (~> 0.7)
|
43
|
-
minitest (~> 5.1)
|
44
|
-
tzinfo (~> 1.1)
|
45
|
-
appraisal (2.1.0)
|
46
|
-
bundler
|
47
|
-
rake
|
48
|
-
thor (>= 0.14.0)
|
49
|
-
arel (7.1.4)
|
50
|
-
bcrypt (3.1.11)
|
51
|
-
bson (4.2.1)
|
52
|
-
builder (3.2.3)
|
53
|
-
coderay (1.1.1)
|
54
|
-
concurrent-ruby (1.0.4)
|
55
|
-
devise (4.2.0)
|
56
|
-
bcrypt (~> 3.0)
|
57
|
-
orm_adapter (~> 0.1)
|
58
|
-
railties (>= 4.1.0, < 5.1)
|
59
|
-
responders
|
60
|
-
warden (~> 1.2.3)
|
61
|
-
diff-lcs (1.2.5)
|
62
|
-
erubis (2.7.0)
|
63
|
-
globalid (0.3.7)
|
64
|
-
activesupport (>= 4.1.0)
|
65
|
-
i18n (0.7.0)
|
66
|
-
inch (0.7.1)
|
67
|
-
pry
|
68
|
-
sparkr (>= 0.2.0)
|
69
|
-
term-ansicolor
|
70
|
-
yard (~> 0.8.7.5)
|
71
|
-
loofah (2.0.3)
|
72
|
-
nokogiri (>= 1.5.9)
|
73
|
-
mail (2.6.4)
|
74
|
-
mime-types (>= 1.16, < 4)
|
75
|
-
method_source (0.8.2)
|
76
|
-
mime-types (3.1)
|
77
|
-
mime-types-data (~> 3.2015)
|
78
|
-
mime-types-data (3.2016.0521)
|
79
|
-
mini_portile2 (2.1.0)
|
80
|
-
minitest (5.10.1)
|
81
|
-
mongo (2.4.1)
|
82
|
-
bson (>= 4.2.1, < 5.0.0)
|
83
|
-
mongoid (6.0.3)
|
84
|
-
activemodel (~> 5.0)
|
85
|
-
mongo (~> 2.3)
|
86
|
-
nokogiri (1.7.0.1)
|
87
|
-
mini_portile2 (~> 2.1.0)
|
88
|
-
orm_adapter (0.5.0)
|
89
|
-
pry (0.10.4)
|
90
|
-
coderay (~> 1.1.0)
|
91
|
-
method_source (~> 0.8.1)
|
92
|
-
slop (~> 3.4)
|
93
|
-
rack (2.0.1)
|
94
|
-
rack-test (0.6.3)
|
95
|
-
rack (>= 1.0)
|
96
|
-
rails-dom-testing (2.0.2)
|
97
|
-
activesupport (>= 4.2.0, < 6.0)
|
98
|
-
nokogiri (~> 1.6)
|
99
|
-
rails-html-sanitizer (1.0.3)
|
100
|
-
loofah (~> 2.0)
|
101
|
-
railties (5.0.1)
|
102
|
-
actionpack (= 5.0.1)
|
103
|
-
activesupport (= 5.0.1)
|
104
|
-
method_source
|
105
|
-
rake (>= 0.8.7)
|
106
|
-
thor (>= 0.18.1, < 2.0)
|
107
|
-
rake (12.0.0)
|
108
|
-
responders (2.3.0)
|
109
|
-
railties (>= 4.2.0, < 5.1)
|
110
|
-
rspec (3.5.0)
|
111
|
-
rspec-core (~> 3.5.0)
|
112
|
-
rspec-expectations (~> 3.5.0)
|
113
|
-
rspec-mocks (~> 3.5.0)
|
114
|
-
rspec-core (3.5.4)
|
115
|
-
rspec-support (~> 3.5.0)
|
116
|
-
rspec-expectations (3.5.0)
|
117
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
118
|
-
rspec-support (~> 3.5.0)
|
119
|
-
rspec-mocks (3.5.0)
|
120
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
121
|
-
rspec-support (~> 3.5.0)
|
122
|
-
rspec-support (3.5.0)
|
123
|
-
slop (3.6.0)
|
124
|
-
sparkr (0.4.1)
|
125
|
-
term-ansicolor (1.4.0)
|
126
|
-
tins (~> 1.0)
|
127
|
-
thor (0.19.4)
|
128
|
-
thread_safe (0.3.5)
|
129
|
-
tins (1.13.0)
|
130
|
-
tzinfo (1.2.2)
|
131
|
-
thread_safe (~> 0.1)
|
132
|
-
warden (1.2.6)
|
133
|
-
rack (>= 1.0)
|
134
|
-
yard (0.8.7.6)
|
135
|
-
|
136
|
-
PLATFORMS
|
137
|
-
ruby
|
138
|
-
|
139
|
-
DEPENDENCIES
|
140
|
-
activerecord (>= 3.2.6, < 6)
|
141
|
-
appraisal (~> 2.0)
|
142
|
-
inch (~> 0.4)
|
143
|
-
mongoid (>= 3.1.0, < 7)
|
144
|
-
rspec (~> 3.0)
|
145
|
-
simple_token_authentication!
|
146
|
-
|
147
|
-
BUNDLED WITH
|
148
|
-
1.13.6
|