soar_smaak 0.1.13 → 0.1.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/soar_smaak/router.rb +5 -1
- data/lib/soar_smaak/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4dd32ee9f3d23dfb851a6c6ba5c708744dca471a
|
4
|
+
data.tar.gz: d2af9080f9efe8c2b594e0b6e7058f9176a1efac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba0d899a12ad7ae065abe67bb7a4b9308dba6497007b225901670cfcff82487ae51bbee398ad5719841431adb6a23cfa128a1a9b42507790b28274748288d685
|
7
|
+
data.tar.gz: 61771b192cd935d8635e938e8c251f729f62ef6455bd4007c587f6ab10561afbd80640e4a202180f75ae62d768b42e8f54d57d382fbf79d729a757e6b3a6bf98
|
data/lib/soar_smaak/router.rb
CHANGED
@@ -24,7 +24,11 @@ module SoarSmaak
|
|
24
24
|
request = Rack::Request.new(env)
|
25
25
|
if SoarSmaak::Interpreter::smaak_request?(request) or @signed_routes[request.path]
|
26
26
|
@auditing.debug("Smaak: routing smaak request")
|
27
|
-
|
27
|
+
begin
|
28
|
+
auth_message, body = smaak(request)
|
29
|
+
rescue => ex
|
30
|
+
return [500, {"Content-Type" => "text/html"}, ['Unable to route request on SMAAK route. Was your request a SMAAK request?']]
|
31
|
+
end
|
28
32
|
return [403, {}, [" 403 - Not authorized"]] if not auth_message.identifier
|
29
33
|
@auditing.debug("Smaak: request authorized for #{auth_message.identifier}")
|
30
34
|
env["rack.input"] = body
|
data/lib/soar_smaak/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soar_smaak
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.14
|
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-07-
|
11
|
+
date: 2016-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|