jwt_token_auth 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jwt_token_auth/auth_token.rb +4 -3
- data/lib/jwt_token_auth/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bdf2e87a6aa52c9c287da67c98c88c25aa478b7
|
4
|
+
data.tar.gz: da86cea6864ee78270bfd22e9738395127240988
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30a5f9b41889d643d930881d0ae7a54da7e883eb1ded1ef6e5415e5a892cc414329d666303533aa8dbb65f1e7e13b35ad9a39b49bdd1fbc44ece6f3e686fe33e
|
7
|
+
data.tar.gz: 78c58ffbdc9d187fecebb6c85c16c00838589741a8d6ed84921bf0f680d2afa074ae7b152e460afd299e3ad6ada8dbf0746b01140cf6c7dab1c6b550df41841e
|
@@ -21,16 +21,17 @@ module JwtTokenAuth
|
|
21
21
|
|
22
22
|
def initialize(params = {})
|
23
23
|
params = convert_keys_into_symbols(params)
|
24
|
+
|
24
25
|
@iss = params[:iss]
|
25
26
|
@sub = params[:sub]
|
26
27
|
@aud = params[:aud]
|
27
28
|
@exp = params.fetch :exp do
|
28
|
-
JwtTokenAuth.configuration.expiration_time.call().to_i
|
29
|
-
end
|
29
|
+
time = JwtTokenAuth.configuration.expiration_time.call().to_i
|
30
|
+
end.tap { |time| params[:exp] = time }
|
30
31
|
@nbf = params[:nbf]
|
31
32
|
@iat = params.fetch :iat do
|
32
33
|
Time.now.to_i
|
33
|
-
end
|
34
|
+
end.tap { |time| params[:iat] = time }
|
34
35
|
@jti = params[:jti]
|
35
36
|
|
36
37
|
__setobj__(params)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jwt_token_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kristopher Bredemeier
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -142,3 +142,4 @@ signing_key:
|
|
142
142
|
specification_version: 4
|
143
143
|
summary: JWT Token Authemtication
|
144
144
|
test_files: []
|
145
|
+
has_rdoc:
|