et_fake_ccd 0.1.9 → 0.1.10
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/config.rb +2 -1
- data/lib/et_fake_ccd/service/authentication_web_app.rb +6 -1
- data/lib/et_fake_ccd/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 070dd3bd47f220350923f82e3b721997bd794672750d7577281ae9e01229b582
|
4
|
+
data.tar.gz: d1250bc6dfdad66385c385db5b628769f46f5b64d2255da24d64aae08199a5f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7622ac13e3b1fad3c7aadf3ffb845bb3c873df0c110e9e90aea69e8ba9b38eb23e6a1469ec3c5bec20ad9987f040e1384bb7a6c989f820e48c886d0a8b7522e1
|
7
|
+
data.tar.gz: a8647631fc1c9d93ea7a98d7e7f23cab78923c02bd5df195bc6bfdd4a4b323a101b770df9fa75f847d0ae893d3ff738ffd7b8402a953302cf97576d4260d52ae
|
data/Gemfile.lock
CHANGED
data/lib/et_fake_ccd/config.rb
CHANGED
@@ -10,7 +10,8 @@ module EtFakeCcd
|
|
10
10
|
c.microservice = 'ccd_gw'
|
11
11
|
c.microservice_secret = 'AAAAAAAAAAAAAAAC'
|
12
12
|
c.valid_credentials = [
|
13
|
-
{username: 'm@m.com', password: 'p'}
|
13
|
+
{username: 'm@m.com', password: 'p'},
|
14
|
+
{username: 'm@m.com', password: 'Pa55word11'}
|
14
15
|
]
|
15
16
|
c.oauth2_client_id = "ccd_gateway"
|
16
17
|
c.oauth2_redirect_url = "http://localhost:3451/oauth2redirect" # The contents of this at the moment are not important
|
@@ -15,7 +15,12 @@ module EtFakeCcd
|
|
15
15
|
render(path: file, locals: { oauth2_redirect_url: config.oauth2_redirect_url, oauth2_client_id: config.oauth2_client_id })
|
16
16
|
end
|
17
17
|
r.post do
|
18
|
-
r.
|
18
|
+
command = ::EtFakeCcd::Command::LoginUserCommand.from_json(r.params)
|
19
|
+
if command.valid?
|
20
|
+
r.redirect "/case-management-web/oauth2redirect?code=pfSHb6v4dEDEfqqP"
|
21
|
+
else
|
22
|
+
r.halt 401, "Access Denied"
|
23
|
+
end
|
19
24
|
end
|
20
25
|
end
|
21
26
|
end
|
data/lib/et_fake_ccd/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: et_fake_ccd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gary Taylor
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: roda
|