bsm-sso-client 0.7.10 → 0.7.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,6 +27,9 @@ module Bsm
27
27
  mattr_accessor :secret
28
28
  @@secret = nil
29
29
 
30
+ mattr_accessor :token_timeout
31
+ @@token_timeout = 60.seconds
32
+
30
33
  mattr_accessor :expire_after
31
34
  @@expire_after = 2.hours
32
35
 
@@ -22,7 +22,7 @@ class Bsm::Sso::Client::AbstractResource < Hash
22
22
 
23
23
  # @return [Hash] default headers
24
24
  def headers
25
- { 'Authorization' => Bsm::Sso::Client.verifier.generate(30.seconds.from_now) }
25
+ { 'Authorization' => Bsm::Sso::Client.verifier.generate(Bsm::Sso::Client.token_timeout.from_now) }
26
26
  end
27
27
 
28
28
  # @param [String] path
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bsm-sso-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.10
4
+ version: 0.7.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-29 00:00:00.000000000 Z
12
+ date: 2013-01-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties