firebase-auth-id_token_keeper 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00a1824fdb8ba078e3dd5c52297d2ccc3ec61d4fb1999067cce43988df4e512a
|
4
|
+
data.tar.gz: 10d9439e51847f57557da702e67a59ada53cbf84c8699fbee8af43b0d3f65053
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1fd7c896a269321f978d51f48558726fb02e46096ad7cff7efec218c4c00b7482864ccf203dc35c1c69ad483c8cd987999196cccf8414ae8e55d9942a7a7ff6
|
7
|
+
data.tar.gz: 87a3af657ef57329852c0c082ad56e7b353f7980744ff8197642c1a48ba0b5a673b70f2b5c68daedefe60c75dc4da39cd2a45fa5528483c8ba7322e63fae79b9
|
data/README.md
CHANGED
@@ -70,7 +70,7 @@ Make a support file `spec/support/firebase_auth_id_token_keeper.rb` which contai
|
|
70
70
|
|
71
71
|
```ruby
|
72
72
|
RSpec.configure do |config|
|
73
|
-
config.include Firebase::Auth::IDTokenKeeper::
|
73
|
+
config.include Firebase::Auth::IDTokenKeeper::Testing::RequestHelpers, type: :request
|
74
74
|
end
|
75
75
|
```
|
76
76
|
|
@@ -4,7 +4,6 @@ module Firebase
|
|
4
4
|
module Auth
|
5
5
|
module IDTokenKeeper
|
6
6
|
module Testing
|
7
|
-
|
8
7
|
def self.generate_test_id_token(decoded_jwt)
|
9
8
|
JWT.encode(decoded_jwt, nil, 'none')
|
10
9
|
end
|
@@ -12,16 +11,6 @@ module Firebase
|
|
12
11
|
def self.decode_test_id_token(encoded_jwt)
|
13
12
|
JWT.decode(encoded_jwt, nil, false)
|
14
13
|
end
|
15
|
-
|
16
|
-
module Helpers
|
17
|
-
extend ActiveSupport::Concern
|
18
|
-
|
19
|
-
::Firebase::Auth::IDTokenKeeper::IDToken.class_eval do
|
20
|
-
def verified_id_token
|
21
|
-
::Firebase::Auth::IDTokenKeeper::Testing.decode_test_id_token(encoded_jwt)
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
14
|
end
|
26
15
|
end
|
27
16
|
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Firebase
|
4
|
+
module Auth
|
5
|
+
module IDTokenKeeper
|
6
|
+
module Testing
|
7
|
+
module RequestHelpers
|
8
|
+
extend ActiveSupport::Concern
|
9
|
+
|
10
|
+
::Firebase::Auth::IDTokenKeeper::IDToken.class_eval do
|
11
|
+
def verified_id_token
|
12
|
+
::Firebase::Auth::IDTokenKeeper::Testing.decode_test_id_token(encoded_jwt)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: firebase-auth-id_token_keeper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rui Onodera
|
@@ -103,6 +103,7 @@ files:
|
|
103
103
|
- lib/firebase/auth/id_token_keeper/id_token.rb
|
104
104
|
- lib/firebase/auth/id_token_keeper/public_keys_endpoint.rb
|
105
105
|
- lib/firebase/auth/id_token_keeper/testing.rb
|
106
|
+
- lib/firebase/auth/id_token_keeper/testing/request_helpers.rb
|
106
107
|
- lib/firebase/auth/id_token_keeper/version.rb
|
107
108
|
- lib/generators/firebase/auth/id_token_keeper/install_generator.rb
|
108
109
|
- lib/generators/firebase/auth/id_token_keeper/templates/firebase_auth_id_token_keeper.rb
|