soar_sc_core 1.1.4 → 1.2.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: 46426d1110a87a01faeca37d037b09824dbbb5d0
4
- data.tar.gz: 346c2ee1d13b35a38f1dab9d3e420b81b483814d
3
+ metadata.gz: 2676eaf8cf02c6ca43dc44175ada1b445e4db0d4
4
+ data.tar.gz: 7ffeb98cef2029759a364775c293767745cbeca3
5
5
  SHA512:
6
- metadata.gz: 7966c09f63a0c2953578b611ba4498d9774ddc8719925a22dfc0b6e13e1c7dd488ec924864fd5f7f34434ec6e7892dd782c91faca3d39bcb0a751dd548d29cbe
7
- data.tar.gz: a7e5308f48c4caeedd80c6a6cc47358eb07c6e77636ebb607c05e647211d6f00c0337a9f97fdb54e6121d20bfcfb320be9bb7bf4bd96b716dd91ce15a76ec77b
6
+ metadata.gz: 2aed4e3d60392d154163e661a49b5fd257833a19bb15ca5d70430c7cc7329a3b3b6f088743644a9450ff669290169d7a7854202078b10ce7834097db49da5440
7
+ data.tar.gz: d0678b5effb31da849e07c6af8bd3d0ff79633a6e1912ea4357853582222decdbad24ad48c38e33c0cff4ca92828b0716484aea67135b565dc2c4c7741e4eaaf
@@ -1,3 +1,3 @@
1
1
  module SoarScCore
2
- VERSION = "1.1.4"
2
+ VERSION = "1.2.0"
3
3
  end
data/lib/soar_sc_core.rb CHANGED
@@ -152,6 +152,9 @@ module SoarSc
152
152
  def self.bootstrap_authentication(stack)
153
153
  if 'development' == ENV['RACK_ENV']
154
154
  SoarSc::auditing.warn("Authentication ignored in development mode.")
155
+ elsif SoarSc::configuration['auth_token']
156
+ SoarSc::auditing.info("Using auth tokens for authentication in <#{SoarSc::configuration['auth_token']['mode']}> mode.",SoarSc::startup_flow_id)
157
+ stack.use SoarAuthenticationToken::RackMiddleware, SoarSc::configuration['auth_token'], SoarSc::auditing
155
158
  elsif SoarSc::environment['AUTH_TOKEN_VALIDATION_SERVER']
156
159
  SoarSc::auditing.info("Using AUTH_TOKEN_VALIDATION_SERVER=#{SoarSc::environment['AUTH_TOKEN_VALIDATION_SERVER']} for authentication",SoarSc::startup_flow_id)
157
160
  configuration = { 'mode' => 'remote', 'validator-url' => SoarSc::environment['AUTH_TOKEN_VALIDATION_SERVER'] }
data/soar_sc_core.gemspec CHANGED
@@ -50,7 +50,7 @@ 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", "~>2.0.3"
53
+ spec.add_dependency "soar_authentication_token", "~>3.0.0"
54
54
  spec.add_dependency "soar_authorization", "0.1.7"
55
55
  spec.add_dependency 'smaak', "~> 0.2.2"
56
56
  spec.add_dependency 'soar_smaak', "~> 0.1.19"
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: 1.1.4
4
+ version: 1.2.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: 2017-01-16 00:00:00.000000000 Z
11
+ date: 2017-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: haml
@@ -240,14 +240,14 @@ dependencies:
240
240
  requirements:
241
241
  - - "~>"
242
242
  - !ruby/object:Gem::Version
243
- version: 2.0.3
243
+ version: 3.0.0
244
244
  type: :runtime
245
245
  prerelease: false
246
246
  version_requirements: !ruby/object:Gem::Requirement
247
247
  requirements:
248
248
  - - "~>"
249
249
  - !ruby/object:Gem::Version
250
- version: 2.0.3
250
+ version: 3.0.0
251
251
  - !ruby/object:Gem::Dependency
252
252
  name: soar_authorization
253
253
  requirement: !ruby/object:Gem::Requirement