soar_sc_routing 0.2.1 → 0.3.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: c2a0aba57ba81d7c62914ca1b3c3f5833dd4b14d
4
- data.tar.gz: e6ef0c5b70b7180815d4a8e6170592857de02285
3
+ metadata.gz: 4bb5b77df2fb8f3b1a5352c9abce94530bb34a4d
4
+ data.tar.gz: 43176feaf8552a434ca11b645d73e404305ac0b7
5
5
  SHA512:
6
- metadata.gz: 0c619f3d91aaf735477c2ef23f140cc775446d094577470709cfe7425deb49b87bbc1352d2754b1bee28f51551decf701e7da3af89e6cf839e7dd403fb552a80
7
- data.tar.gz: ece1b863cca5cf02b6e2191d0b67c11a3f6f6a71efd0a4681cfaf7f88194331ca87edbcc9e6ac146c9b16fd563438693623665b0a121f3363aa3646a378050cc
6
+ metadata.gz: e1167b8da800031cda89b3bc39d6a9d0a4f6bfc2abac6ddf25c91c0286a4eb9378e1ae29179b03d5eff36096b8043d0b7a846bc7841f9462970bba556363c61b
7
+ data.tar.gz: 7117035eb57ccd0b878880209477d99922ff92c4cd162b2870325c5f6d4a96aff812fa3364897c103e965cf828b091bca619b724b40444879e6b8423a42b143f
@@ -1,4 +1,5 @@
1
1
  require 'json'
2
+ require 'soar/authorization/access_manager'
2
3
  require 'soar_authorization'
3
4
  require 'jsender'
4
5
  require 'soar_aspects'
@@ -31,6 +32,9 @@ module SoarScRouting
31
32
  end
32
33
 
33
34
  def access_manager
35
+ # TODO: Remove coupling to SoarSc::service_registry
36
+ provider = Soar::Authorization::AccessManager::Provider::ServiceRegistry.new(SoarSc::service_registry)
37
+ @policy_am ||= Soar::Authorization::AccessManager.new(provider)
34
38
  @policy_am
35
39
  end
36
40
 
@@ -1,3 +1,3 @@
1
1
  module SoarScRouting
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -31,4 +31,5 @@ Gem::Specification.new do |spec|
31
31
  #spec.add_dependency 'smaak', "~> 0.2.2"
32
32
  spec.add_dependency "soar_aspects", "~> 0.1.2"
33
33
  spec.add_dependency 'soar_authorization', '~> 0.1.7'
34
+ spec.add_dependency 'soar-authorization-access_manager', '~> 0.0.1'
34
35
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soar_sc_routing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ernst Van Graan
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.1.7
55
+ - !ruby/object:Gem::Dependency
56
+ name: soar-authorization-access_manager
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.0.1
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.0.1
55
69
  description: base router and router meta library for soar_sc
56
70
  email:
57
71
  - ernst.van.graan@hetzner.co.za