et_fake_ccd 0.1.5 → 0.1.6
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/ui_app.rb +14 -7
- 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: b861b770b5cfe8445b20fe64ec186896176d0e2f9c182c48959984333b3d663c
|
4
|
+
data.tar.gz: 6fbd42a4e759cda1252abb01934cbcc77997babcb586384fa6912e9402218c2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b06ecc8a9d4eb937c6e3db398fe5ddf45d73eea3ca868158c821d711cc1f9d16e1d06b4c462a4511af769f73b0845ad3c47b03eb094358ce4d34172f16b18577
|
7
|
+
data.tar.gz: aa41901dd32dc346c8c3c49baffc39cf7965048b1326c3d87f42e21d6bd945a8ad7b655b9e531262c7982132b665b1bb4a73530330357d24b1edd026e08d4950
|
data/Gemfile.lock
CHANGED
@@ -2,6 +2,7 @@ require 'roda'
|
|
2
2
|
require 'json'
|
3
3
|
require 'et_fake_ccd/commands'
|
4
4
|
require 'et_fake_ccd/auth_service'
|
5
|
+
require 'addressable/uri'
|
5
6
|
module EtFakeCcd
|
6
7
|
module Service
|
7
8
|
class UiApp < Roda
|
@@ -19,17 +20,23 @@ module EtFakeCcd
|
|
19
20
|
|
20
21
|
def config_result
|
21
22
|
j = {
|
22
|
-
"login_url": "
|
23
|
-
"logout_url": "http://localhost:8080/api-gateway/logout",
|
24
|
-
"api_url": "http://localhost:8080/api-gateway/aggregated",
|
25
|
-
"case_data_url": "http://localhost:8080/api-gateway/data",
|
26
|
-
"document_management_url": "http://localhost:8080/api-gateway/documents",
|
23
|
+
"login_url": url_for("/authentication-web/login"),
|
24
|
+
"logout_url": url_for("http://localhost:8080/api-gateway/logout"),
|
25
|
+
"api_url": url_for("http://localhost:8080/api-gateway/aggregated"),
|
26
|
+
"case_data_url": url_for("http://localhost:8080/api-gateway/data"),
|
27
|
+
"document_management_url": url_for("http://localhost:8080/api-gateway/documents"),
|
27
28
|
"pagination_page_size": 25,
|
28
|
-
"oauth2_token_endpoint_url": "http://localhost:8080/api-gateway/oauth2",
|
29
|
-
"oauth2_client_id": "ccd_gateway"
|
29
|
+
"oauth2_token_endpoint_url": url_for("http://localhost:8080/api-gateway/oauth2"),
|
30
|
+
"oauth2_client_id": url_for("ccd_gateway")
|
30
31
|
}
|
31
32
|
JSON.generate(j)
|
32
33
|
end
|
34
|
+
|
35
|
+
def url_for(path)
|
36
|
+
uri = Addressable::URI.parse(request.url)
|
37
|
+
uri.path = path
|
38
|
+
uri.to_s
|
39
|
+
end
|
33
40
|
end
|
34
41
|
end
|
35
42
|
end
|
data/lib/et_fake_ccd/version.rb
CHANGED