et_fake_ccd 0.1.27 → 0.1.28
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 +3 -3
- 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: d26bd97a75cc4636550fa11f70e34fe74950b829dc116a3cb89db5734669f626
|
4
|
+
data.tar.gz: 4384a49bf8a2e50318c1ebcb7906dff68854d3ee4513ee427892fd53fae1b1e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1459e60f07fecc68f8866069da348c9a11143dcb748d68d7b4a7cc3beaff55f8bedf172d255ca8e34bb00a5af361d99541c75208540982d1d349db835768a98a
|
7
|
+
data.tar.gz: 4b35985d641fcbc0a3093f90c8d5f2f33ecf721816e74f6541a46eeb6f0e73cd4685a8cd042238284275864062b2f171c31e4ca6afd7fa93504bc48da288f7b8
|
data/Gemfile.lock
CHANGED
@@ -27,10 +27,10 @@ module EtFakeCcd
|
|
27
27
|
end
|
28
28
|
end
|
29
29
|
end
|
30
|
-
r.is "caseworkers", String, "jurisdictions", String, "case-types", String, "event-triggers", "uploadDocument", "token" do |uid, jid, ctid|
|
30
|
+
r.is "caseworkers", String, "jurisdictions", String, "case-types", String, "cases", String, "event-triggers", "uploadDocument", "token" do |uid, jid, ctid, cid|
|
31
31
|
r.get do
|
32
32
|
if EtFakeCcd::AuthService.validate_service_token(r.headers['ServiceAuthorization'].gsub(/\ABearer /, '')) && EtFakeCcd::AuthService.validate_user_token(r.headers['Authorization'].gsub(/\ABearer /, ''))
|
33
|
-
initiate_upload_document(uid, jid, ctid)
|
33
|
+
initiate_upload_document(uid, jid, ctid, cid)
|
34
34
|
else
|
35
35
|
r.halt 403, forbidden_error_for(r)
|
36
36
|
end
|
@@ -144,7 +144,7 @@ module EtFakeCcd
|
|
144
144
|
JSON.generate(j)
|
145
145
|
end
|
146
146
|
|
147
|
-
def initiate_upload_document(uid, jid, ctid)
|
147
|
+
def initiate_upload_document(uid, jid, ctid, cid)
|
148
148
|
j = {
|
149
149
|
"token": "eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJvZDRwZ3NhbDQwcTdndHI0Y2F1bmVmZGU5aSIsInN1YiI6IjIyIiwiaWF0IjoxNTYxOTY2NzM1LCJldmVudC1pZCI6ImluaXRpYXRlQ2FzZSIsImNhc2UtdHlwZS1pZCI6IkVtcFRyaWJfTVZQXzEuMF9NYW5jIiwianVyaXNkaWN0aW9uLWlkIjoiRU1QTE9ZTUVOVCIsImNhc2UtdmVyc2lvbiI6ImJmMjFhOWU4ZmJjNWEzODQ2ZmIwNWI0ZmEwODU5ZTA5MTdiMjIwMmYifQ.u-OfexKFu52uvSgTNVHJ5kUQ9KTZGClRIRnGXRPSmGY",
|
150
150
|
"case_details": {
|
data/lib/et_fake_ccd/version.rb
CHANGED