soar_authentication_token 6.0.8 → 6.0.9

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: 13324de4da4f33c3a075cdc792cc5b2acca26879
4
- data.tar.gz: a6b07e2a6a1a832e1ad97ee772d7a19d672467d5
3
+ metadata.gz: be301efe1e83558c9256e71f43bebad5e60f6864
4
+ data.tar.gz: 6cbcf00b1f25fe8fcb7b4301bcfefabc25f7d82a
5
5
  SHA512:
6
- metadata.gz: c04d967e1b4eba7ced50c74f5e5b995903a974658149bde7400cddafc071fa32355e0a14f999fc9ce81d7fc1e47a6aa00011ef84791c9a026139d459151a17fa
7
- data.tar.gz: 5e791ca0c67dc28d1d2f48892c6430465fdab1268036e7a237a5a7908158232b9f02eb12139e71b3c2e8f95954c7bd3b166c66bdca54c6a9d07384c529612bfa
6
+ metadata.gz: 7b65232a85b3b4f09a70c4e94b0c37b552aeae9233a1b7e9f179b3f9d9a87fcc1602c635cef93500acb0f722c2ca7c9dcd81c69d7d1fe386937db6de74344f58
7
+ data.tar.gz: a6caeb1f50d1fdbf787d1de36034481734932f027056081b29cce9a23edb5408560c28eb5087fa624980d4d9b244d7188c54b56178a04bf7dc125c854f542211
@@ -31,9 +31,12 @@ module SoarAuthenticationToken
31
31
  request.env['HTTP_AUTHORIZATION'],
32
32
  request.params['flow_identifier'],
33
33
  { 'source_address' => request.ip,
34
- 'user_agent' => request.env['HTTP_USER_AGENT'],
34
+ 'user_agent' => request.user_agent,
35
35
  'service' => @service_identifier,
36
- 'resource' => request.env['REQUEST_PATH']
36
+ 'resource' => request.path,
37
+ 'method' => request.request_method,
38
+ 'base_url' => request.base_url,
39
+ 'version' => SoarAuthenticationToken::VERSION
37
40
  }
38
41
  ]
39
42
  end
@@ -1,3 +1,3 @@
1
1
  module SoarAuthenticationToken
2
- VERSION = '6.0.8'
2
+ VERSION = '6.0.9'
3
3
  end
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
 
22
22
  spec.add_dependency 'soar_xt', '~> 0.0.3'
23
23
  spec.add_dependency 'jwt', '~> 1.5', '>= 1.5.6'
24
- spec.add_dependency "rack", '~> 1.6', '>= 1.6.4'
24
+ spec.add_dependency "rack", '>= 1.6.4', '< 3.0.0'
25
25
  spec.add_dependency 'authenticated_client', '~> 0.0.2'
26
26
 
27
27
  spec.add_development_dependency 'auth_token_store_provider', "~> 1.0"
@@ -51,7 +51,7 @@ describe SoarAuthenticationToken::TokenGenerator do
51
51
  @validator.inject_store_provider(@test_store)
52
52
 
53
53
  token, token_generator_meta = @iut.generate(authenticated_identifier: @test_authenticated_identifier, flow_identifier: 'test-flow-id')
54
- token_validity, token_validator_meta = @validator.validate(authentication_token: token, flow_identifier: 'test-flow-id')
54
+ token_validity, token_validator_meta = @validator.validate(authentication_token: token, request_information: request_information_from_valid_source, flow_identifier: 'test-flow-id')
55
55
  expect(token_validity).to eq(true)
56
56
  expect(token_validator_meta['authenticated_identifier']).to eq(@test_authenticated_identifier)
57
57
  end
@@ -66,7 +66,7 @@ describe SoarAuthenticationToken::TokenGenerator do
66
66
 
67
67
  @validator = SoarAuthenticationToken::TokenValidator.new(@configuration_remote_validator)
68
68
  @iut.inject_store_provider(@test_store)
69
- token_validity, token_validator_meta, messages = @validator.validate(authentication_token: token, flow_identifier: 'test-flow-id')
69
+ token_validity, token_validator_meta, messages = @validator.validate(authentication_token: token, request_information: request_information_from_valid_source, flow_identifier: 'test-flow-id')
70
70
 
71
71
  expect(token_validity).to eq(true)
72
72
  expect(token_validator_meta['authenticated_identifier']).to eq(@test_authenticated_identifier)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soar_authentication_token
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.8
4
+ version: 6.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Barney de Villiers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-05 00:00:00.000000000 Z
11
+ date: 2017-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: soar_xt
@@ -48,22 +48,22 @@ dependencies:
48
48
  name: rack
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - "~>"
52
- - !ruby/object:Gem::Version
53
- version: '1.6'
54
51
  - - ">="
55
52
  - !ruby/object:Gem::Version
56
53
  version: 1.6.4
54
+ - - "<"
55
+ - !ruby/object:Gem::Version
56
+ version: 3.0.0
57
57
  type: :runtime
58
58
  prerelease: false
59
59
  version_requirements: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - "~>"
62
- - !ruby/object:Gem::Version
63
- version: '1.6'
64
61
  - - ">="
65
62
  - !ruby/object:Gem::Version
66
63
  version: 1.6.4
64
+ - - "<"
65
+ - !ruby/object:Gem::Version
66
+ version: 3.0.0
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: authenticated_client
69
69
  requirement: !ruby/object:Gem::Requirement