soar_sc_core 0.10.0 → 0.11.0

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: c6d53da3c35fdb6e5a17284f7acddce410943cd2
4
- data.tar.gz: cacb2344be187c21166e5ad14e5dc269fb7de07c
3
+ metadata.gz: 87b875382ebbe961e4b24cfe6a3b7f5b06d22f58
4
+ data.tar.gz: e2871ac6a692d734df3b21d713137d3f229f4b1d
5
5
  SHA512:
6
- metadata.gz: 37369d0e7cbf98d71fd09cc9cd79e10c1c3cb694521a492622b6ecf35fdfba82a8555a12f968816aa915272f2cebb3ee5d906207f7386686110650407384ca90
7
- data.tar.gz: dd1daeec5c39e124a62c1b51f02026124e41850bf994e04265608a2ff81f26734019976094025aa9184e13311b710d0e90fb2859f93c469741686ebefc03b7cc
6
+ metadata.gz: 7afd0fb2b8c841f1e206e69eca751c8f70391b5f4e768e842ca84da87c9316b11a44f03f90f2f737e6e789f2ed5265bb8dd6e884f7e47f95360146ef04e0e44d
7
+ data.tar.gz: d561cbcba8131acf765a1766c408cfd7ad017fc422f55e5339e435ffb8a908cee0b9d817542d254476fb28c99fc4cb870d21ec0af71fb6d857fc53e5a3617817
@@ -1,3 +1,3 @@
1
1
  module SoarScCore
2
- VERSION = "0.10.0"
2
+ VERSION = "0.11.0"
3
3
  end
data/lib/soar_sc_core.rb CHANGED
@@ -38,6 +38,7 @@ def require_auth
38
38
  require 'soar_smaak'
39
39
  require 'soar_authentication'
40
40
  require 'soar_authentication_cas'
41
+ require 'soar_authentication_token'
41
42
  Dir["#{Dir.pwd}/lib/authorization/*.rb"].each {|file| require file }
42
43
  end
43
44
 
@@ -151,6 +152,10 @@ module SoarSc
151
152
  def self.bootstrap_authentication(stack)
152
153
  if 'development' == ENV['RACK_ENV']
153
154
  SoarSc::auditing.warn("Authentication ignored in development mode.")
155
+ elsif SoarSc::environment['AUTH_TOKEN_VALIDATION_SERVER']
156
+ SoarSc::auditing.info("Using AUTH_TOKEN_VALIDATION_SERVER=#{SoarSc::environment['AUTH_TOKEN_VALIDATION_SERVER']} for authentication",SoarSc::startup_flow_id)
157
+ configuration = { 'mode' => 'remote', 'validator-url' => SoarSc::environment['AUTH_TOKEN_VALIDATION_SERVER'] }
158
+ stack.use SoarAuthenticationToken::RackMiddleware, configuration
154
159
  elsif SoarSc::environment['CAS_SERVER']
155
160
  SoarSc::auditing.info("Using CAS_SERVER=#{SoarSc::environment['CAS_SERVER']} for authentication",SoarSc::startup_flow_id)
156
161
  options = SoarAuthenticationCas::configure(SoarSc::environment)
data/soar_sc_core.gemspec CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.bindir = "exe"
27
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
28
  spec.require_paths = ["lib"]
29
-
29
+
30
30
  # web services
31
31
  spec.add_dependency "haml", "~> 4.0.7"
32
32
  spec.add_dependency 'wadling', "~> 0.1.9"
@@ -50,13 +50,14 @@ Gem::Specification.new do |spec|
50
50
  # Identity management
51
51
  spec.add_dependency "soar_authentication", "~>0.1.3"
52
52
  spec.add_dependency "soar_authentication_cas", "~> 0.1.2"
53
+ spec.add_dependency "soar_authentication_token", "~>0.1.0"
53
54
  spec.add_dependency "soar_authorization", "0.1.6"
54
55
  spec.add_dependency 'smaak', "~> 0.2.2"
55
56
  spec.add_dependency 'soar_smaak', "~> 0.1.19"
56
57
  spec.add_dependency 'soar_pl', "~> 0.0.12"
57
58
  spec.add_dependency 'soar_idm', "~> 0.0.2"
58
59
  spec.add_dependency 'idr_client', "~> 0.0.3"
59
-
60
+
60
61
  # Auditing
61
62
  spec.add_dependency "soar_auditing_provider", "~> 1.4.0"
62
63
  spec.add_dependency "logstash_auditor", "~> 1.0.1"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soar_sc_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ernst Van Graan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-28 00:00:00.000000000 Z
11
+ date: 2016-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: haml
@@ -234,6 +234,20 @@ dependencies:
234
234
  - - "~>"
235
235
  - !ruby/object:Gem::Version
236
236
  version: 0.1.2
237
+ - !ruby/object:Gem::Dependency
238
+ name: soar_authentication_token
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - "~>"
242
+ - !ruby/object:Gem::Version
243
+ version: 0.1.0
244
+ type: :runtime
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - "~>"
249
+ - !ruby/object:Gem::Version
250
+ version: 0.1.0
237
251
  - !ruby/object:Gem::Dependency
238
252
  name: soar_authorization
239
253
  requirement: !ruby/object:Gem::Requirement
@@ -526,4 +540,3 @@ signing_key:
526
540
  specification_version: 4
527
541
  summary: Service component core aggregations
528
542
  test_files: []
529
- has_rdoc: