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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c6559c178a9bf5ef8d716a02ba2e12d875164c19d39808faaf5b579345fd64e0
4
- data.tar.gz: 62a2b9953a81c755bda04dffd052231c4457e1fecf18eb8f1950ff79f844efb1
3
+ metadata.gz: 070dd3bd47f220350923f82e3b721997bd794672750d7577281ae9e01229b582
4
+ data.tar.gz: d1250bc6dfdad66385c385db5b628769f46f5b64d2255da24d64aae08199a5f8
5
5
  SHA512:
6
- metadata.gz: 8190fbd904d2a22a546c92429e9f005cef19ff4a535862c61147906d5c9acac4991fce10320e08e79fee70495243164e0d86e39d8e36cd80bacac3ecae627799
7
- data.tar.gz: 8edb6a5ac27819dd14d13a8d772678adc1750593e269acde8e0aeb9c2b4c05c3e7a5df4db1667106aec9bfc237ba5181f0ad795028cecdbb251442527844c099
6
+ metadata.gz: 7622ac13e3b1fad3c7aadf3ffb845bb3c873df0c110e9e90aea69e8ba9b38eb23e6a1469ec3c5bec20ad9987f040e1384bb7a6c989f820e48c886d0a8b7522e1
7
+ data.tar.gz: a8647631fc1c9d93ea7a98d7e7f23cab78923c02bd5df195bc6bfdd4a4b323a101b770df9fa75f847d0ae893d3ff738ffd7b8402a953302cf97576d4260d52ae
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- et_fake_ccd (0.1.9)
4
+ et_fake_ccd (0.1.10)
5
5
  activemodel (~> 5.2, >= 5.2.3)
6
6
  roda (~> 3.21)
7
7
  rotp (~> 5.1)
@@ -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.redirect "/case-management-web/oauth2redirect?code=pfSHb6v4dEDEfqqP"
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
@@ -1,3 +1,3 @@
1
1
  module EtFakeCcd
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
3
3
  end
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.9
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-04 00:00:00.000000000 Z
11
+ date: 2019-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: roda