knock 2.0 → 2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/app/controllers/knock/auth_token_controller.rb +1 -1
- data/app/model/knock/auth_token.rb +4 -4
- data/lib/knock/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +282 -257
- data/test/model/knock/auth_token_test.rb +53 -4
- data/test/test_helper.rb +0 -2
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
ZGE1ZDRlNjhmMzY5Y2ZjMDc4Y2RkMjJkMGQxMWRkZDQ4NTczYzQ2MQ==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0f6b742633bb744818397b30805125c4cd594ab7
|
4
|
+
data.tar.gz: 1e00ad45596924b74c9b8db53e6c900f9f1e28ea
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
NjU5MzgwMDcwMDNiOTI3NWNjZTczZjJlMjYwNjg4NDQxMzJlZDNmY2Y3NTI4
|
11
|
-
MDRjOGJjZDI5OWRhYzg2Mjg1NzY3MzZhZWQ0NzljMTY4NjI0Mjc=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
ZWQ2Mjc4OWRiNGIxYjk2MTdiNWQyNWE2OTk5ZjZkMTIyMmI3OWIzMTIyYmIx
|
14
|
-
NGM0M2UyMDY0OGZiNDc4N2U1NTVhYmQ1MjIyY2I0MWFiYmFhYTEzMWQ0Yzc5
|
15
|
-
MDgxNTNiN2FiMDg4YmUxNzYwOTI0M2MwM2Y5YzEzNDY5OWYwNjY=
|
6
|
+
metadata.gz: c7dbf7a5aab3ffe4c5ae6d76d65d98fd1ea2d1df4722ff4ea5ecc8af1305e2e88199607bc7d2ea5b80841b258b2710f89e66c2cab385aff89c5f083ab87fdfd8
|
7
|
+
data.tar.gz: 47f947712ccf9bf8488982fd48175ccffbe4023876952574323c580f55c4c9b75108f26beb525fa22a59cd4a1145d2c31eeecece69a4fb8ca53b652be1861c0b
|
@@ -5,13 +5,13 @@ module Knock
|
|
5
5
|
attr_reader :token
|
6
6
|
attr_reader :payload
|
7
7
|
|
8
|
-
def initialize payload: {}, token: nil
|
8
|
+
def initialize payload: {}, token: nil, verify_options: {}
|
9
9
|
if token.present?
|
10
|
-
@payload, _ = JWT.decode token, decode_key, true, options
|
10
|
+
@payload, _ = JWT.decode token, decode_key, true, options.merge(verify_options)
|
11
11
|
@token = token
|
12
12
|
else
|
13
|
-
@payload = payload
|
14
|
-
@token = JWT.encode
|
13
|
+
@payload = claims.merge(payload)
|
14
|
+
@token = JWT.encode @payload,
|
15
15
|
secret_key,
|
16
16
|
Knock.token_signature_algorithm
|
17
17
|
end
|
data/lib/knock/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -1,79 +1,153 @@
|
|
1
|
-
[1m[35m (
|
2
|
-
[1m[35m (
|
3
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.
|
1
|
+
[1m[35m (9.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
2
|
+
[1m[35m (8.3ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
3
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4
4
|
Migrating to CreateUsers (20150713101607)
|
5
5
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
6
6
|
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "password_digest" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
7
7
|
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150713101607"]]
|
8
|
-
[1m[35m (2.
|
8
|
+
[1m[35m (2.8ms)[0m [1m[36mcommit transaction[0m
|
9
9
|
Migrating to CreateAdmins (20160519075733)
|
10
|
-
[1m[35m (0.
|
11
|
-
[1m[35m (0.
|
10
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
11
|
+
[1m[35m (0.5ms)[0m [1m[35mCREATE TABLE "admins" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "password_digest" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
12
12
|
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160519075733"]]
|
13
|
-
[1m[35m (
|
13
|
+
[1m[35m (1.8ms)[0m [1m[36mcommit transaction[0m
|
14
14
|
Migrating to CreateVendors (20160522051816)
|
15
15
|
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
16
|
-
[1m[35m (0.
|
16
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "vendors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "password_digest" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
17
17
|
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160522051816"]]
|
18
|
-
[1m[35m (
|
18
|
+
[1m[35m (1.8ms)[0m [1m[36mcommit transaction[0m
|
19
19
|
Migrating to CreateCompositeNameEntities (20160522181712)
|
20
|
-
[1m[35m (0.
|
21
|
-
[1m[35m (0.
|
22
|
-
[1m[35mSQL (0.
|
23
|
-
[1m[35m (
|
24
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.
|
25
|
-
[1m[35m (0.
|
26
|
-
[1m[35mSQL (0.
|
27
|
-
[1m[35m (
|
28
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.
|
20
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
21
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "composite_name_entities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar, "password_digest" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
22
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160522181712"]]
|
23
|
+
[1m[35m (2.3ms)[0m [1m[36mcommit transaction[0m
|
24
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
25
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
26
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", 2017-01-30 22:34:49 UTC], ["updated_at", 2017-01-30 22:34:49 UTC]]
|
27
|
+
[1m[35m (1.8ms)[0m [1m[36mcommit transaction[0m
|
28
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
29
29
|
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
30
30
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
31
31
|
[1m[36mFixture Delete (0.2ms)[0m [1m[31mDELETE FROM "admins"[0m
|
32
|
-
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('admin.one@example.net', '$2a$04$
|
32
|
+
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "admins" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('admin.one@example.net', '$2a$04$uGcHf5gTXrtrXz1xNbc88uMiqAUyTAMkqCg3AMOPwb37YgaGPpztW', '2017-01-30 22:34:52.452212', '2017-01-30 22:34:52.452212', 980190962)[0m
|
33
33
|
[1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "composite_name_entities"[0m
|
34
|
-
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "composite_name_entities" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('composite_name_entity.one@example.net', '$2a$04$
|
34
|
+
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "composite_name_entities" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('composite_name_entity.one@example.net', '$2a$04$mlaZf/ZocmFG87hoVWWSy.Hw1aeUZ5xSfMMmLgBO1/MUy/fDpCCsq', '2017-01-30 22:34:52.456448', '2017-01-30 22:34:52.456448', 980190962)[0m
|
35
35
|
[1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "users"[0m
|
36
|
-
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$
|
37
|
-
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$
|
36
|
+
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('one@example.net', '$2a$04$0Jv.z4yGtMFYyJDYru5w/.JOz.6Ci65bNXMshFDvLfKAHtHNPGw2m', '2017-01-30 22:34:52.458379', '2017-01-30 22:34:52.458379', 980190962)[0m
|
37
|
+
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('two@example.net', '$2a$04$qWsslRiKaNJhhCtTua6xxO209ux7nwrExgUfpZCpq8pKgvcfSkRiq', '2017-01-30 22:34:52.458379', '2017-01-30 22:34:52.458379', 298486374)[0m
|
38
38
|
[1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "vendors"[0m
|
39
|
-
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "vendors" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('vendor.one@example.net', '$2a$04$
|
40
|
-
[1m[35m (
|
39
|
+
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "vendors" ("email", "password_digest", "created_at", "updated_at", "id") VALUES ('vendor.one@example.net', '$2a$04$yUH8XfsOno528ZxohlDlVe04eESr6mhDfFCjIoJnja2fWi2bzB9aa', '2017-01-30 22:34:52.460595', '2017-01-30 22:34:52.460595', 980190962)[0m
|
40
|
+
[1m[35m (129.5ms)[0m [1m[36mcommit transaction[0m
|
41
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
42
|
+
-----------------------------------------------------------------------------
|
43
|
+
VendorProtectedControllerTest: test_has_a_current_vendor_after_authentication
|
44
|
+
-----------------------------------------------------------------------------
|
45
|
+
[1m[36mVendor Load (0.3ms)[0m [1m[34mSELECT "vendors".* FROM "vendors" WHERE "vendors"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
46
|
+
Processing by VendorProtectedController#index as HTML
|
47
|
+
[1m[36mVendor Load (0.1ms)[0m [1m[34mSELECT "vendors".* FROM "vendors" WHERE "vendors"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
48
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.1ms)
|
49
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
50
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51
|
+
--------------------------------------------------------------------------
|
52
|
+
VendorProtectedControllerTest: test_responds_with_success_if_authenticated
|
53
|
+
--------------------------------------------------------------------------
|
54
|
+
[1m[36mVendor Load (0.1ms)[0m [1m[34mSELECT "vendors".* FROM "vendors" WHERE "vendors"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
55
|
+
Processing by VendorProtectedController#index as HTML
|
56
|
+
[1m[36mVendor Load (0.1ms)[0m [1m[34mSELECT "vendors".* FROM "vendors" WHERE "vendors"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
57
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
|
58
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
59
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
60
|
+
-------------------------------------------------------------------------------
|
61
|
+
VendorProtectedControllerTest: test_responds_with_unauthorized_to_invalid_token
|
62
|
+
-------------------------------------------------------------------------------
|
63
|
+
Processing by VendorProtectedController#index as HTML
|
64
|
+
Filter chain halted as :authenticate_vendor rendered or redirected
|
65
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
66
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
67
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
68
|
+
-----------------------------------------------------------------------------
|
69
|
+
VendorProtectedControllerTest: test_raises_method_missing_error_appropriately
|
70
|
+
-----------------------------------------------------------------------------
|
71
|
+
Processing by VendorProtectedController#show as HTML
|
72
|
+
Parameters: {"id"=>"1"}
|
73
|
+
Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms)
|
74
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
75
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
76
|
+
--------------------------------------------------------------------------------
|
77
|
+
VendorProtectedControllerTest: test_responds_with_unauthorized_to_invalid_entity
|
78
|
+
--------------------------------------------------------------------------------
|
79
|
+
Processing by VendorProtectedController#index as HTML
|
80
|
+
[1m[36mVendor Load (0.1ms)[0m [1m[34mSELECT "vendors".* FROM "vendors" WHERE "vendors"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]]
|
81
|
+
Filter chain halted as :authenticate_vendor rendered or redirected
|
82
|
+
Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms)
|
83
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
41
84
|
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
Completed
|
85
|
+
--------------------------------------------------------------
|
86
|
+
VendorProtectedControllerTest: test_responds_with_unauthorized
|
87
|
+
--------------------------------------------------------------
|
88
|
+
Processing by VendorProtectedController#index as HTML
|
89
|
+
[1m[36mVendor Load (0.1ms)[0m [1m[34mSELECT "vendors".* FROM "vendors" WHERE "vendors"."id" = ? LIMIT ?[0m [["id", nil], ["LIMIT", 1]]
|
90
|
+
Filter chain halted as :authenticate_vendor rendered or redirected
|
91
|
+
Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms)
|
49
92
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
50
93
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
Filter chain halted as :
|
57
|
-
Completed 401 Unauthorized in
|
94
|
+
---------------------------------------------------------------------------------------------
|
95
|
+
CompositeNameEntityProtectedControllerTest: test_responds_with_unauthorized_to_invalid_entity
|
96
|
+
---------------------------------------------------------------------------------------------
|
97
|
+
Processing by CompositeNameEntityProtectedController#index as HTML
|
98
|
+
[1m[36mCompositeNameEntity Load (0.2ms)[0m [1m[34mSELECT "composite_name_entities".* FROM "composite_name_entities" WHERE "composite_name_entities"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]]
|
99
|
+
Filter chain halted as :authenticate_composite_name_entity rendered or redirected
|
100
|
+
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.2ms)
|
58
101
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
59
102
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
[1m[
|
64
|
-
Processing by
|
65
|
-
|
66
|
-
|
103
|
+
---------------------------------------------------------------------------------------------------------
|
104
|
+
CompositeNameEntityProtectedControllerTest: test_has_a_current_composite_name_entity_after_authentication
|
105
|
+
---------------------------------------------------------------------------------------------------------
|
106
|
+
[1m[36mCompositeNameEntity Load (0.1ms)[0m [1m[34mSELECT "composite_name_entities".* FROM "composite_name_entities" WHERE "composite_name_entities"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
107
|
+
Processing by CompositeNameEntityProtectedController#index as HTML
|
108
|
+
[1m[36mCompositeNameEntity Load (0.1ms)[0m [1m[34mSELECT "composite_name_entities".* FROM "composite_name_entities" WHERE "composite_name_entities"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
109
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
|
110
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
111
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
112
|
+
---------------------------------------------------------------------------
|
113
|
+
CompositeNameEntityProtectedControllerTest: test_responds_with_unauthorized
|
114
|
+
---------------------------------------------------------------------------
|
115
|
+
Processing by CompositeNameEntityProtectedController#index as HTML
|
116
|
+
[1m[36mCompositeNameEntity Load (0.1ms)[0m [1m[34mSELECT "composite_name_entities".* FROM "composite_name_entities" WHERE "composite_name_entities"."id" = ? LIMIT ?[0m [["id", nil], ["LIMIT", 1]]
|
117
|
+
Filter chain halted as :authenticate_composite_name_entity rendered or redirected
|
118
|
+
Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms)
|
119
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
120
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
121
|
+
--------------------------------------------------------------------------------------------
|
122
|
+
CompositeNameEntityProtectedControllerTest: test_responds_with_unauthorized_to_invalid_token
|
123
|
+
--------------------------------------------------------------------------------------------
|
124
|
+
Processing by CompositeNameEntityProtectedController#index as HTML
|
125
|
+
Filter chain halted as :authenticate_composite_name_entity rendered or redirected
|
67
126
|
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
127
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
128
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
129
|
+
---------------------------------------------------------------------------------------
|
130
|
+
CompositeNameEntityProtectedControllerTest: test_responds_with_success_if_authenticated
|
131
|
+
---------------------------------------------------------------------------------------
|
132
|
+
[1m[36mCompositeNameEntity Load (0.1ms)[0m [1m[34mSELECT "composite_name_entities".* FROM "composite_name_entities" WHERE "composite_name_entities"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
133
|
+
Processing by CompositeNameEntityProtectedController#index as HTML
|
134
|
+
[1m[36mCompositeNameEntity Load (0.0ms)[0m [1m[34mSELECT "composite_name_entities".* FROM "composite_name_entities" WHERE "composite_name_entities"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
135
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
136
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
137
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
138
|
+
------------------------------------------------------------------------
|
139
|
+
TokenControllerGeneratorTest: test_assert_all_files_are_properly_created
|
140
|
+
------------------------------------------------------------------------
|
68
141
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
69
142
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
70
143
|
------------------------------------------------------------------------------
|
71
|
-
ProtectedResourcesControllerTest:
|
144
|
+
ProtectedResourcesControllerTest: test_responds_with_success_with_token_in_url
|
72
145
|
------------------------------------------------------------------------------
|
73
|
-
[1m[36mUser Load (0.
|
146
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
74
147
|
Processing by ProtectedResourcesController#index as HTML
|
148
|
+
Parameters: {"token"=>"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0ODU5MDIwOTIsInN1YiI6OTgwMTkwOTYyfQ.mXZ2Kj1BABftUQzk82aoUWpwAFYYdbU3FC38X7zYgIQ"}
|
75
149
|
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
76
|
-
Completed 200 OK in
|
150
|
+
Completed 200 OK in 2ms (ActiveRecord: 0.1ms)
|
77
151
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
78
152
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
79
153
|
---------------------------------------------------------------------------------------
|
@@ -81,47 +155,64 @@ ProtectedResourcesControllerTest: test_responds_with_success_with_valid_token_in
|
|
81
155
|
---------------------------------------------------------------------------------------
|
82
156
|
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
83
157
|
Processing by ProtectedResourcesController#index as HTML
|
84
|
-
[1m[36mUser Load (0.
|
85
|
-
Completed 200 OK in 1ms (ActiveRecord: 0.
|
158
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
159
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
|
160
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
161
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
162
|
+
-----------------------------------------------------------------
|
163
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized
|
164
|
+
-----------------------------------------------------------------
|
165
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
166
|
+
Processing by ProtectedResourcesController#index as HTML
|
167
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", nil], ["LIMIT", 1]]
|
168
|
+
Filter chain halted as :authenticate_user rendered or redirected
|
169
|
+
Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms)
|
86
170
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
87
171
|
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
88
172
|
-------------------------------------------------------------------------------------
|
89
173
|
ProtectedResourcesControllerTest: test_accepts_any_prefix_in_the_authorization_header
|
90
174
|
-------------------------------------------------------------------------------------
|
91
175
|
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
176
|
+
Processing by ProtectedResourcesController#index as HTML
|
177
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
178
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
|
179
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
180
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
181
|
+
------------------------------------------------------------------------------
|
182
|
+
ProtectedResourcesControllerTest: test_has_a_current_user_after_authentication
|
183
|
+
------------------------------------------------------------------------------
|
184
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
92
185
|
Processing by ProtectedResourcesController#index as HTML
|
93
186
|
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
94
187
|
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
95
188
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
96
|
-
[1m[35m (0.
|
97
|
-
|
98
|
-
ProtectedResourcesControllerTest:
|
99
|
-
|
189
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
190
|
+
-------------------------------------------------------------------------------------------
|
191
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized_with_invalid_token_in_url
|
192
|
+
-------------------------------------------------------------------------------------------
|
100
193
|
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
101
194
|
Processing by ProtectedResourcesController#index as HTML
|
102
|
-
|
195
|
+
Parameters: {"token"=>"invalid"}
|
103
196
|
Filter chain halted as :authenticate_user rendered or redirected
|
104
|
-
Completed 401 Unauthorized in
|
197
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
105
198
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
106
199
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
107
|
-
|
108
|
-
ProtectedResourcesControllerTest:
|
109
|
-
|
200
|
+
----------------------------------------------------------------------------------
|
201
|
+
ProtectedResourcesControllerTest: test_accepts_authorization_header_without_prefix
|
202
|
+
----------------------------------------------------------------------------------
|
110
203
|
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
111
204
|
Processing by ProtectedResourcesController#index as HTML
|
112
|
-
|
113
|
-
|
114
|
-
Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
|
205
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
206
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
115
207
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
116
208
|
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
[1m[
|
121
|
-
Processing by
|
122
|
-
|
123
|
-
|
124
|
-
Completed 404 Not Found in 3ms (ActiveRecord: 0.3ms)
|
209
|
+
----------------------------------------------------------------------------------------------
|
210
|
+
ProtectedResourcesControllerTest: test_responds_with_unauthorized_with_invalid_token_in_header
|
211
|
+
----------------------------------------------------------------------------------------------
|
212
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
213
|
+
Processing by ProtectedResourcesController#index as HTML
|
214
|
+
Filter chain halted as :authenticate_user rendered or redirected
|
215
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
125
216
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
126
217
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
127
218
|
-------------------------------------------------
|
@@ -130,8 +221,8 @@ VendorTokenControllerTest: test_responds_with_201
|
|
130
221
|
[1m[36mVendor Load (0.1ms)[0m [1m[34mSELECT "vendors".* FROM "vendors" WHERE "vendors"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
131
222
|
Processing by VendorTokenController#create as HTML
|
132
223
|
Parameters: {"auth"=>{"email"=>"vendor.one@example.net", "password"=>"[FILTERED]"}}
|
133
|
-
[1m[36mVendor Load (0.
|
134
|
-
Completed 201 Created in 4ms (Views: 0.
|
224
|
+
[1m[36mVendor Load (0.2ms)[0m [1m[34mSELECT "vendors".* FROM "vendors" WHERE "vendors"."email" = ? LIMIT ?[0m [["email", "vendor.one@example.net"], ["LIMIT", 1]]
|
225
|
+
Completed 201 Created in 4ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
135
226
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
136
227
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
137
228
|
------------------------------------------------------------------------
|
@@ -141,64 +232,29 @@ VendorTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
|
141
232
|
Processing by VendorTokenController#create as HTML
|
142
233
|
Parameters: {"auth"=>{"email"=>"vendor.one@example.net", "password"=>"[FILTERED]"}}
|
143
234
|
[1m[36mVendor Load (0.1ms)[0m [1m[34mSELECT "vendors".* FROM "vendors" WHERE "vendors"."email" = ? LIMIT ?[0m [["email", "vendor.one@example.net"], ["LIMIT", 1]]
|
144
|
-
Completed 404 Not Found in
|
145
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
146
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
147
|
-
---------------------------------------------------------------------------------------
|
148
|
-
Knock::AuthTokenTest: test_does_not_validate_expiration_claim_with_a_nil_token_lifetime
|
149
|
-
---------------------------------------------------------------------------------------
|
150
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
151
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
152
|
-
---------------------------------------------------------------
|
153
|
-
Knock::AuthTokenTest: test_validate_expiration_claim_by_default
|
154
|
-
---------------------------------------------------------------
|
155
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
156
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
157
|
-
-------------------------------------------
|
158
|
-
Knock::AuthTokenTest: test_verify_algorithm
|
159
|
-
-------------------------------------------
|
160
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
161
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
162
|
-
----------------------------------------------------
|
163
|
-
Knock::AuthTokenTest: test_decode_RSA_encoded_tokens
|
164
|
-
----------------------------------------------------
|
165
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
166
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
167
|
-
-------------------------------------------------
|
168
|
-
Knock::AuthTokenTest: test_encode_tokens_with_RSA
|
169
|
-
-------------------------------------------------
|
235
|
+
Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)
|
170
236
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
171
237
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
[1m[
|
176
|
-
|
177
|
-
-------------------------------------------------------------------------
|
178
|
-
Knock::AuthTokenTest: test_verify_audience_when_token_audience_is_present
|
179
|
-
-------------------------------------------------------------------------
|
180
|
-
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
181
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
182
|
-
-----------------------------------------------------------------------
|
183
|
-
AdminTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
184
|
-
-----------------------------------------------------------------------
|
185
|
-
[1m[36mAdmin Load (0.2ms)[0m [1m[34mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
186
|
-
Processing by AdminTokenController#create as HTML
|
238
|
+
------------------------------------------------------------------------
|
239
|
+
VendorTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
240
|
+
------------------------------------------------------------------------
|
241
|
+
[1m[36mVendor Load (0.1ms)[0m [1m[34mSELECT "vendors".* FROM "vendors" WHERE "vendors"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
242
|
+
Processing by VendorTokenController#create as HTML
|
187
243
|
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
188
|
-
[1m[
|
244
|
+
[1m[36mVendor Load (0.1ms)[0m [1m[34mSELECT "vendors".* FROM "vendors" WHERE "vendors"."email" = ? LIMIT ?[0m [["email", "wrong@example.net"], ["LIMIT", 1]]
|
189
245
|
Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
|
190
246
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
191
247
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
192
248
|
------------------------------------------------
|
193
249
|
AdminTokenControllerTest: test_responds_with_201
|
194
250
|
------------------------------------------------
|
195
|
-
[1m[36mAdmin Load (0.
|
251
|
+
[1m[36mAdmin Load (0.2ms)[0m [1m[34mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
196
252
|
Processing by AdminTokenController#create as HTML
|
197
253
|
Parameters: {"auth"=>{"email"=>"admin.one@example.net", "password"=>"[FILTERED]"}}
|
198
|
-
[1m[36mAdmin Load (0.
|
199
|
-
Completed 201 Created in 3ms (Views: 0.
|
254
|
+
[1m[36mAdmin Load (0.2ms)[0m [1m[34mSELECT "admins".* FROM "admins" WHERE "admins"."email" = ? LIMIT ?[0m [["email", "admin.one@example.net"], ["LIMIT", 1]]
|
255
|
+
Completed 201 Created in 3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
200
256
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
201
|
-
[1m[35m (0.
|
257
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
202
258
|
-----------------------------------------------------------------------
|
203
259
|
AdminTokenControllerTest: test_responds_with_404_if_password_is_invalid
|
204
260
|
-----------------------------------------------------------------------
|
@@ -208,16 +264,17 @@ Processing by AdminTokenController#create as HTML
|
|
208
264
|
[1m[36mAdmin Load (0.1ms)[0m [1m[34mSELECT "admins".* FROM "admins" WHERE "admins"."email" = ? LIMIT ?[0m [["email", "admin.one@example.net"], ["LIMIT", 1]]
|
209
265
|
Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms)
|
210
266
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
211
|
-
[1m[35m (0.
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
[1m[
|
216
|
-
Processing by
|
217
|
-
|
218
|
-
|
267
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
268
|
+
-----------------------------------------------------------------------
|
269
|
+
AdminTokenControllerTest: test_responds_with_404_if_user_does_not_exist
|
270
|
+
-----------------------------------------------------------------------
|
271
|
+
[1m[36mAdmin Load (0.1ms)[0m [1m[34mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
272
|
+
Processing by AdminTokenController#create as HTML
|
273
|
+
Parameters: {"auth"=>{"email"=>"wrong@example.net", "password"=>"[FILTERED]"}}
|
274
|
+
[1m[36mAdmin Load (0.1ms)[0m [1m[34mSELECT "admins".* FROM "admins" WHERE "admins"."email" = ? LIMIT ?[0m [["email", "wrong@example.net"], ["LIMIT", 1]]
|
275
|
+
Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
|
219
276
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
220
|
-
[1m[35m (0.
|
277
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
221
278
|
-----------------------------------------------------
|
222
279
|
CurrentUsersControllerTest: test_responds_with_200_#2
|
223
280
|
-----------------------------------------------------
|
@@ -227,6 +284,15 @@ Processing by CurrentUsersController#show as HTML
|
|
227
284
|
Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
|
228
285
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
229
286
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
287
|
+
--------------------------------------------------
|
288
|
+
CurrentUsersControllerTest: test_responds_with_200
|
289
|
+
--------------------------------------------------
|
290
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
291
|
+
Processing by CurrentUsersController#show as HTML
|
292
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
293
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
294
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
295
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
230
296
|
---------------------------------------------------------------------------
|
231
297
|
CurrentUsersControllerTest: test_responds_with_404_if_user_is_not_logged_in
|
232
298
|
---------------------------------------------------------------------------
|
@@ -234,58 +300,11 @@ CurrentUsersControllerTest: test_responds_with_404_if_user_is_not_logged_in
|
|
234
300
|
Processing by CurrentUsersController#show as HTML
|
235
301
|
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", nil], ["LIMIT", 1]]
|
236
302
|
Completed 404 Not Found in 1ms (ActiveRecord: 0.0ms)
|
237
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
238
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
239
|
-
-----------------------------------------------------------------------------
|
240
|
-
VendorProtectedControllerTest: test_raises_method_missing_error_appropriately
|
241
|
-
-----------------------------------------------------------------------------
|
242
|
-
Processing by VendorProtectedController#show as HTML
|
243
|
-
Parameters: {"id"=>"1"}
|
244
|
-
Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)
|
245
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
246
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
247
|
-
-----------------------------------------------------------------------------
|
248
|
-
VendorProtectedControllerTest: test_has_a_current_vendor_after_authentication
|
249
|
-
-----------------------------------------------------------------------------
|
250
|
-
[1m[36mVendor Load (0.1ms)[0m [1m[34mSELECT "vendors".* FROM "vendors" WHERE "vendors"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
251
|
-
Processing by VendorProtectedController#index as HTML
|
252
|
-
[1m[36mVendor Load (0.0ms)[0m [1m[34mSELECT "vendors".* FROM "vendors" WHERE "vendors"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
253
|
-
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
254
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
255
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
256
|
-
--------------------------------------------------------------------------------
|
257
|
-
VendorProtectedControllerTest: test_responds_with_unauthorized_to_invalid_entity
|
258
|
-
--------------------------------------------------------------------------------
|
259
|
-
Processing by VendorProtectedController#index as HTML
|
260
|
-
[1m[36mVendor Load (0.1ms)[0m [1m[34mSELECT "vendors".* FROM "vendors" WHERE "vendors"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]]
|
261
|
-
Filter chain halted as :authenticate_vendor rendered or redirected
|
262
|
-
Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms)
|
263
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
264
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
265
|
-
--------------------------------------------------------------------------
|
266
|
-
VendorProtectedControllerTest: test_responds_with_success_if_authenticated
|
267
|
-
--------------------------------------------------------------------------
|
268
|
-
[1m[36mVendor Load (0.1ms)[0m [1m[34mSELECT "vendors".* FROM "vendors" WHERE "vendors"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
269
|
-
Processing by VendorProtectedController#index as HTML
|
270
|
-
[1m[36mVendor Load (0.0ms)[0m [1m[34mSELECT "vendors".* FROM "vendors" WHERE "vendors"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
271
|
-
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
272
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
273
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
274
|
-
--------------------------------------------------------------
|
275
|
-
VendorProtectedControllerTest: test_responds_with_unauthorized
|
276
|
-
--------------------------------------------------------------
|
277
|
-
Processing by VendorProtectedController#index as HTML
|
278
|
-
[1m[36mVendor Load (0.1ms)[0m [1m[34mSELECT "vendors".* FROM "vendors" WHERE "vendors"."id" = ? LIMIT ?[0m [["id", nil], ["LIMIT", 1]]
|
279
|
-
Filter chain halted as :authenticate_vendor rendered or redirected
|
280
|
-
Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms)
|
281
303
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
282
304
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
Processing by VendorProtectedController#index as HTML
|
287
|
-
Filter chain halted as :authenticate_vendor rendered or redirected
|
288
|
-
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
305
|
+
----------------------------------------------------------------
|
306
|
+
InstallGeneratorTest: test_Assert_all_files_are_properly_created
|
307
|
+
----------------------------------------------------------------
|
289
308
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
290
309
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
291
310
|
--------------------------------------------------------------------
|
@@ -296,7 +315,7 @@ Processing by CustomUnauthorizedEntityController#index as HTML
|
|
296
315
|
Filter chain halted as :authenticate_user rendered or redirected
|
297
316
|
Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
|
298
317
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
299
|
-
[1m[35m (0.
|
318
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
300
319
|
--------------------------------------------------------------------------------------
|
301
320
|
CustomUnauthorizedEntityControllerTest: test_responds_with_not_found_to_invalid_entity
|
302
321
|
--------------------------------------------------------------------------------------
|
@@ -306,15 +325,6 @@ Filter chain halted as :authenticate_user rendered or redirected
|
|
306
325
|
Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
|
307
326
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
308
327
|
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
309
|
-
-----------------------------------------------------------------------------------
|
310
|
-
CustomUnauthorizedEntityControllerTest: test_responds_with_success_if_authenticated
|
311
|
-
-----------------------------------------------------------------------------------
|
312
|
-
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
313
|
-
Processing by CustomUnauthorizedEntityController#index as HTML
|
314
|
-
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
315
|
-
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
316
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
317
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
318
328
|
-------------------------------------------------------------------------------------
|
319
329
|
CustomUnauthorizedEntityControllerTest: test_responds_with_not_found_to_invalid_token
|
320
330
|
-------------------------------------------------------------------------------------
|
@@ -323,60 +333,32 @@ Filter chain halted as :authenticate_user rendered or redirected
|
|
323
333
|
Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
|
324
334
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
325
335
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
[1m[
|
330
|
-
|
331
|
-
|
332
|
-
CompositeNameEntityProtectedControllerTest: test_responds_with_unauthorized
|
333
|
-
---------------------------------------------------------------------------
|
334
|
-
Processing by CompositeNameEntityProtectedController#index as HTML
|
335
|
-
[1m[36mCompositeNameEntity Load (0.1ms)[0m [1m[34mSELECT "composite_name_entities".* FROM "composite_name_entities" WHERE "composite_name_entities"."id" = ? LIMIT ?[0m [["id", nil], ["LIMIT", 1]]
|
336
|
-
Filter chain halted as :authenticate_composite_name_entity rendered or redirected
|
337
|
-
Completed 401 Unauthorized in 2ms (ActiveRecord: 0.1ms)
|
338
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
339
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
340
|
-
--------------------------------------------------------------------------------------------
|
341
|
-
CompositeNameEntityProtectedControllerTest: test_responds_with_unauthorized_to_invalid_token
|
342
|
-
--------------------------------------------------------------------------------------------
|
343
|
-
Processing by CompositeNameEntityProtectedController#index as HTML
|
344
|
-
Filter chain halted as :authenticate_composite_name_entity rendered or redirected
|
345
|
-
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
346
|
-
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
347
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
348
|
-
---------------------------------------------------------------------------------------------------------
|
349
|
-
CompositeNameEntityProtectedControllerTest: test_has_a_current_composite_name_entity_after_authentication
|
350
|
-
---------------------------------------------------------------------------------------------------------
|
351
|
-
[1m[36mCompositeNameEntity Load (0.1ms)[0m [1m[34mSELECT "composite_name_entities".* FROM "composite_name_entities" WHERE "composite_name_entities"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
352
|
-
Processing by CompositeNameEntityProtectedController#index as HTML
|
353
|
-
[1m[36mCompositeNameEntity Load (0.0ms)[0m [1m[34mSELECT "composite_name_entities".* FROM "composite_name_entities" WHERE "composite_name_entities"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
336
|
+
-----------------------------------------------------------------------------------
|
337
|
+
CustomUnauthorizedEntityControllerTest: test_responds_with_success_if_authenticated
|
338
|
+
-----------------------------------------------------------------------------------
|
339
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
340
|
+
Processing by CustomUnauthorizedEntityController#index as HTML
|
341
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
354
342
|
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
355
343
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
356
|
-
[1m[35m (0.
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
Processing by
|
361
|
-
|
362
|
-
|
363
|
-
Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms)
|
344
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
345
|
+
------------------------------------------------------------------------------
|
346
|
+
AdminProtectedControllerTest: test_responds_with_unauthorized_to_invalid_token
|
347
|
+
------------------------------------------------------------------------------
|
348
|
+
Processing by AdminProtectedController#index as HTML
|
349
|
+
Filter chain halted as :authenticate_admin rendered or redirected
|
350
|
+
Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms)
|
364
351
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
365
|
-
[1m[35m (0.
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
[1m[
|
370
|
-
Processing by
|
371
|
-
[1m[
|
372
|
-
Completed 200 OK in 1ms (ActiveRecord: 0.
|
352
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
353
|
+
-------------------------------------------------------------------------
|
354
|
+
AdminProtectedControllerTest: test_responds_with_success_if_authenticated
|
355
|
+
-------------------------------------------------------------------------
|
356
|
+
[1m[36mAdmin Load (0.1ms)[0m [1m[34mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
357
|
+
Processing by AdminProtectedController#index as HTML
|
358
|
+
[1m[36mAdmin Load (0.1ms)[0m [1m[34mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
359
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
|
373
360
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
374
|
-
[1m[35m (0.
|
375
|
-
----------------------------------------------------------------
|
376
|
-
InstallGeneratorTest: test_Assert_all_files_are_properly_created
|
377
|
-
----------------------------------------------------------------
|
378
|
-
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
379
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
361
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
380
362
|
-------------------------------------------------------------
|
381
363
|
AdminProtectedControllerTest: test_responds_with_unauthorized
|
382
364
|
-------------------------------------------------------------
|
@@ -386,42 +368,85 @@ Filter chain halted as :authenticate_admin rendered or redirected
|
|
386
368
|
Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms)
|
387
369
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
388
370
|
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
389
|
-
|
390
|
-
AdminProtectedControllerTest:
|
391
|
-
|
371
|
+
-------------------------------------------------------------------------------
|
372
|
+
AdminProtectedControllerTest: test_responds_with_unauthorized_to_invalid_entity
|
373
|
+
-------------------------------------------------------------------------------
|
392
374
|
Processing by AdminProtectedController#index as HTML
|
375
|
+
[1m[36mAdmin Load (0.1ms)[0m [1m[34mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]]
|
393
376
|
Filter chain halted as :authenticate_admin rendered or redirected
|
394
|
-
Completed 401 Unauthorized in
|
395
|
-
[1m[35m (0.
|
377
|
+
Completed 401 Unauthorized in 1ms (ActiveRecord: 0.1ms)
|
378
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
396
379
|
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
397
380
|
---------------------------------------------------------------------------
|
398
381
|
AdminProtectedControllerTest: test_has_a_current_admin_after_authentication
|
399
382
|
---------------------------------------------------------------------------
|
400
383
|
[1m[36mAdmin Load (0.1ms)[0m [1m[34mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
401
384
|
Processing by AdminProtectedController#index as HTML
|
402
|
-
[1m[36mAdmin Load (0.
|
403
|
-
Completed 200 OK in 1ms (ActiveRecord: 0.
|
385
|
+
[1m[36mAdmin Load (0.1ms)[0m [1m[34mSELECT "admins".* FROM "admins" WHERE "admins"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
386
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
|
387
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
388
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
389
|
+
--------------------------------------------------------------------------------
|
390
|
+
Knock::AuthTokenTest: test_validate_aud_when_verify_options[:verify_aud]_is_true
|
391
|
+
--------------------------------------------------------------------------------
|
404
392
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
405
393
|
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
406
394
|
-------------------------------------------------------------------------
|
407
|
-
|
395
|
+
Knock::AuthTokenTest: test_verify_audience_when_token_audience_is_present
|
408
396
|
-------------------------------------------------------------------------
|
409
|
-
[1m[
|
410
|
-
|
411
|
-
|
412
|
-
|
397
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
398
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
399
|
+
--------------------------------------------------------------------------------------------------------
|
400
|
+
Knock::AuthTokenTest: test_does_not_validate_expiration_when_verify_options[:verify_expiration]_is_false
|
401
|
+
--------------------------------------------------------------------------------------------------------
|
413
402
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
414
403
|
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
[1m[
|
420
|
-
|
421
|
-
|
404
|
+
----------------------------------------------------
|
405
|
+
Knock::AuthTokenTest: test_decode_RSA_encoded_tokens
|
406
|
+
----------------------------------------------------
|
407
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
408
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
409
|
+
----------------------------------------------------------------------------------------------
|
410
|
+
Knock::AuthTokenTest: test_validate_expiration_when_verify_options[:verify_expiration]_is_true
|
411
|
+
----------------------------------------------------------------------------------------------
|
412
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
413
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
414
|
+
------------------------------------------------------------
|
415
|
+
Knock::AuthTokenTest: test_Knock::AuthToken_has_all_payloads
|
416
|
+
------------------------------------------------------------
|
417
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
418
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
419
|
+
------------------------------------------------------------------------------------------
|
420
|
+
Knock::AuthTokenTest: test_does_not_validate_aud_when_verify_options[:verify_aud]_is_false
|
421
|
+
------------------------------------------------------------------------------------------
|
422
422
|
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
423
423
|
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
424
|
+
-------------------------------------------
|
425
|
+
Knock::AuthTokenTest: test_verify_algorithm
|
426
|
+
-------------------------------------------
|
427
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
428
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
429
|
+
---------------------------------------------------------------------------------------
|
430
|
+
Knock::AuthTokenTest: test_does_not_validate_expiration_claim_with_a_nil_token_lifetime
|
431
|
+
---------------------------------------------------------------------------------------
|
432
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
433
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
434
|
+
-------------------------------------------------
|
435
|
+
Knock::AuthTokenTest: test_encode_tokens_with_RSA
|
436
|
+
-------------------------------------------------
|
437
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
438
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
439
|
+
------------------------------------------
|
440
|
+
Knock::AuthTokenTest: test_is_serializable
|
441
|
+
------------------------------------------
|
442
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
443
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
444
|
+
---------------------------------------------------------------
|
445
|
+
Knock::AuthTokenTest: test_validate_expiration_claim_by_default
|
446
|
+
---------------------------------------------------------------
|
447
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
448
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
424
449
|
---------------------------------------
|
425
450
|
KnockTest: test_setup_block_yields_self
|
426
451
|
---------------------------------------
|
427
|
-
[1m[35m (0.
|
452
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
@@ -48,10 +48,10 @@ module Knock
|
|
48
48
|
end
|
49
49
|
|
50
50
|
test "validate expiration claim by default" do
|
51
|
-
token =
|
51
|
+
token = AuthToken.new(payload: {sub: 'foo'}).token
|
52
52
|
Timecop.travel(25.hours.from_now) do
|
53
53
|
assert_raises(JWT::ExpiredSignature) {
|
54
|
-
|
54
|
+
AuthToken.new(token: token)
|
55
55
|
}
|
56
56
|
end
|
57
57
|
end
|
@@ -59,12 +59,61 @@ module Knock
|
|
59
59
|
test "does not validate expiration claim with a nil token_lifetime" do
|
60
60
|
Knock.token_lifetime = nil
|
61
61
|
|
62
|
-
token =
|
62
|
+
token = AuthToken.new(payload: {sub: 'foo'}).token
|
63
63
|
Timecop.travel(10.years.from_now) do
|
64
|
-
assert_not
|
64
|
+
assert_not AuthToken.new(token: token).payload.has_key?('exp')
|
65
65
|
end
|
66
66
|
end
|
67
67
|
|
68
|
+
test "validate aud when verify_options[:verify_aud] is true" do
|
69
|
+
verify_options = {
|
70
|
+
verify_aud: true
|
71
|
+
}
|
72
|
+
Knock.token_audience = -> { 'bar' }
|
73
|
+
key = Knock.token_secret_signature_key.call
|
74
|
+
assert_raises(JWT::InvalidAudError) {
|
75
|
+
AuthToken.new token: @token, verify_options: verify_options
|
76
|
+
}
|
77
|
+
end
|
78
|
+
|
79
|
+
test "does not validate aud when verify_options[:verify_aud] is false" do
|
80
|
+
verify_options = {
|
81
|
+
verify_aud: false
|
82
|
+
}
|
83
|
+
Knock.token_audience = -> { 'bar' }
|
84
|
+
key = Knock.token_secret_signature_key.call
|
85
|
+
assert_not AuthToken.new(token: @token, verify_options: verify_options).payload.has_key?('aud')
|
86
|
+
end
|
87
|
+
|
88
|
+
test "validate expiration when verify_options[:verify_expiration] is true" do
|
89
|
+
verify_options = {
|
90
|
+
verify_expiration: true
|
91
|
+
}
|
92
|
+
token = AuthToken.new(payload: {sub: 'foo'}).token
|
93
|
+
Timecop.travel(25.hours.from_now) do
|
94
|
+
assert_raises(JWT::ExpiredSignature) {
|
95
|
+
AuthToken.new(token: token, verify_options: verify_options)
|
96
|
+
}
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
test "does not validate expiration when verify_options[:verify_expiration] is false" do
|
101
|
+
verify_options = {
|
102
|
+
verify_expiration: false
|
103
|
+
}
|
104
|
+
token = AuthToken.new(payload: {sub: 'foo'}).token
|
105
|
+
Timecop.travel(25.hours.from_now) do
|
106
|
+
assert AuthToken.new(token: token, verify_options: verify_options).payload.has_key?('exp')
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
test "Knock::AuthToken has all payloads" do
|
111
|
+
Knock.token_lifetime = 7.days
|
112
|
+
payload = Knock::AuthToken.new(payload: { sub: 'foo' }).payload
|
113
|
+
assert payload.has_key?(:sub)
|
114
|
+
assert payload.has_key?(:exp)
|
115
|
+
end
|
116
|
+
|
68
117
|
test "is serializable" do
|
69
118
|
auth_token = AuthToken.new token: @token
|
70
119
|
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '2.
|
4
|
+
version: '2.1'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arnaud MESUREUR
|
@@ -9,76 +9,76 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-01-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '4.2'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '4.2'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: jwt
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - ~>
|
32
|
+
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '1.5'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - ~>
|
39
|
+
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '1.5'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: bcrypt
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- - ~>
|
46
|
+
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '3.1'
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- - ~>
|
53
|
+
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '3.1'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: sqlite3
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- - ~>
|
60
|
+
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '1.3'
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- - ~>
|
67
|
+
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '1.3'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: timecop
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- - ~>
|
74
|
+
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: 0.8.0
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- - ~>
|
81
|
+
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: 0.8.0
|
84
84
|
description: Authentication solution for Rails based on JWT
|
@@ -189,12 +189,12 @@ require_paths:
|
|
189
189
|
- lib
|
190
190
|
required_ruby_version: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
|
-
- -
|
192
|
+
- - ">="
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
195
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
196
196
|
requirements:
|
197
|
-
- -
|
197
|
+
- - ">="
|
198
198
|
- !ruby/object:Gem::Version
|
199
199
|
version: '0'
|
200
200
|
requirements: []
|