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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 959e6383e76b94c98e0061cc4548721d13f62593
4
- data.tar.gz: ae3b4f326fddcdb817a4be1a12a36e172232c7b2
3
+ metadata.gz: 4bdf2e87a6aa52c9c287da67c98c88c25aa478b7
4
+ data.tar.gz: da86cea6864ee78270bfd22e9738395127240988
5
5
  SHA512:
6
- metadata.gz: f7437b8c3ee0b5825fae3b6c7c94daea7202b89a6a46fc53ccc5f736a9a2a902c2d823afeb72835ef5b9db719b42dbce0a652a25d90bc5945428c138fd2241cf
7
- data.tar.gz: a4f21f784b4ae32082e47d787b43c4137e1fe291f094279dd5cad74cf39d2ff0cd5c383f4b63309563e7a26a3f20444a1687385a062a9a3b0487c723c5f9e207
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)
@@ -1,3 +1,3 @@
1
1
  module JwtTokenAuth
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-14 00:00:00.000000000 Z
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: