soar_smaak 0.1.4 → 0.1.5

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: 6bb384522230e625155e6a1e36702357a13e49e0
4
- data.tar.gz: bc0600ce3d340e29b961e41fa35e7df1877f6a81
3
+ metadata.gz: 3838aa84a00380ccf4ce210e6e4ecf189d180a66
4
+ data.tar.gz: 53c2ebe5e9fd52a189b1cd28c831b4fa542a3be7
5
5
  SHA512:
6
- metadata.gz: f6050822cdf0e1a036d4f1bc56325816fec0a1d00f8a0536eb5de8ba297434b9f4407ec4d0c7abdbb6b685004931fbd150e54b7046f67ab2afd0fe3561219e4e
7
- data.tar.gz: f97eccf20c5c81272d1c7145d4d369a6824f55eecc6d3b64821556e953dd44cbe7f80ccb07504b1b6a1b355584cd52caa6bce865df7e38e900515882f004e68a
6
+ metadata.gz: 4c6ecea5927d46be936a4bc7e3f7f247e08d956a87b28a86d854fba1afea46f7abd49247f122bfc0ee5523f34ca1b6a8fe0ef4336c9981213c43d44bbfa6e373
7
+ data.tar.gz: 2d3edc6daf773e554aafecf7e702b8154a929a4566271f5d41f10b56581d52607062413988e7b98d6ed8cbb1c7f2991e8b04ce54e6a2ffa6b343c05a0584fc3c
data/README.md CHANGED
@@ -4,6 +4,10 @@ This library offers Rack middle-ware for SMAAK communication. Requests are exami
4
4
 
5
5
  ## Dependencies
6
6
 
7
+ ### SoarAspects::Aspects
8
+
9
+ In order for soar_smaak to obtain its configuration, auditor and signed routes from the rack environment, these need to be placed in the environment before this middleware is used. The SoarAspects::Aspects middleware accomplishes this: https://github.com/hetznerZA/soar_aspects
10
+
7
11
  ### configuration : optional
8
12
 
9
13
  A dictionary including a SMAAK public and private key identifying the service component in question, as well as an optional associations dictionary with the identity and public key and pre-shared key of associations that the SMAAK middleware should verify. If a configuration is not provided, SMAAK will be disabled. An example follows:
@@ -62,10 +66,11 @@ Or install it yourself as:
62
66
  In your application builder, set SOAR aspects that SoarSmaak depend on:
63
67
 
64
68
  ```
65
- SoarAspects::configuration = @config
66
- SoarAspects::signed_routes = @signed_routes
67
- SoarAspects::auditing = @auditing
68
- use SoarAspects
69
+ router = SoarSc::Web::Router.new(config)
70
+ SoarAspects::Aspects::configuration = config
71
+ SoarAspects::Aspects::signed_routes = router.signed_routes
72
+ SoarAspects::Aspects::auditing = SoarSc::auditing
73
+ use SoarAspects::Aspects
69
74
  ```
70
75
 
71
76
  Then add the SMAAK middleware router:
@@ -1,3 +1,3 @@
1
1
  module SoarSmaak
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soar_smaak
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ernst Van Graan