et_fake_ccd 1.1.8 → 1.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/et_fake_ccd/service/data_store_app.rb +7 -5
- data/lib/et_fake_ccd/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bf967c29880b1ad1e3994fbdc45b4b33e785ac3c0e89b87cbac456421e9acd8
|
4
|
+
data.tar.gz: 6fe8f3072516fdd21832687ce98ddc542e795914b5ffc1b5edad6c1e37dd87c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf544a8326303e22e002b38b91291f42e1aaef310ed8e5d6040cbf910a047c66f83c5f0bc5a2be707eb28c00cd35a943a73124c36214176e4fd0ecaa15ab1ca6
|
7
|
+
data.tar.gz: 862e06a37b7ad391f2af5effd8653650db6cf80ce594a7376b29b6f58ea9ae529560325fd4b0123412eb53f7cdfc19831c54129962962dd31d124ad9252dc967
|
data/Gemfile.lock
CHANGED
@@ -68,12 +68,14 @@ module EtFakeCcd
|
|
68
68
|
end
|
69
69
|
end
|
70
70
|
r.is "caseworkers", String, "jurisdictions", String, "case-types", String, "cases", String do |uid, jid, ctid, case_id|
|
71
|
-
|
72
|
-
|
73
|
-
r.
|
74
|
-
|
71
|
+
r.get do
|
72
|
+
with_forced_error_handling(r, stage: :data) do
|
73
|
+
if !EtFakeCcd::AuthService.validate_service_token(r.headers['ServiceAuthorization'].gsub(/\ABearer /, '')) || !EtFakeCcd::AuthService.validate_user_token(r.headers['Authorization'].gsub(/\ABearer /, ''))
|
74
|
+
r.halt 403, forbidden_error_for(r)
|
75
|
+
break
|
76
|
+
end
|
77
|
+
case_response(case_id, uid, jid, ctid)
|
75
78
|
end
|
76
|
-
case_response(case_id, uid, jid, ctid)
|
77
79
|
end
|
78
80
|
|
79
81
|
end
|
data/lib/et_fake_ccd/version.rb
CHANGED