Commit 8dfdae9
committed
refactor(directlogin): remove dead Lift dlServe block + vestigial RestHelper
The bare `POST /my/logins/direct` route has been served by
`code.api.DirectLoginRoutes` (wired into `Http4sApp.baseServices`) since
`LiftRules.statelessDispatch.append(DirectLogin)` was removed from
`Boot.scala`. That left the `dlServe` self-registration block inside
`DirectLogin` as dead code — `super.serve(...)` only does anything when
the object is registered with `LiftRules`, which it no longer is.
Removed:
- the `dlServe` helper (its only job was wrapping a handler in
`RestHelper.serve`),
- the `dlServe { case Req("my" :: "logins" :: "direct" :: Nil, _, PostRequest) }`
registration block,
- `extends RestHelper` (now only `MdcLoggable`) — nothing outside the dead
block used a RestHelper member; there were no `.extract`/`Formats` call
sites, so no local `Formats` replacement was needed (unlike the
OAuth2/GatewayLogin/DAuth de-RestHelper cleanups),
- the now-unused `RestHelper` and `NewStyle.HttpCode` imports.
Kept (still have live callers): `createTokenCommonPart`, `getAllParameters`,
`validator`, `validatorFuture`, `validatorFutureWithParams`,
`getUserFromDirectLoginHeaderFuture`, `getUser`, `getConsumer`,
`grantEntitlementsToUseDynamicEndpointsInSpacesInDirectLogin`, and the
token/consumer/user lookup helpers used by the auth flows.
No behavioural change: the removed block was never reachable after the
Boot dispatch removal. obp-api compiles; no test referenced the removed
members.1 parent c728ba7 commit 8dfdae9
1 file changed
Lines changed: 1 addition & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
47 | | - | |
48 | 46 | | |
49 | 47 | | |
50 | 48 | | |
| |||
79 | 77 | | |
80 | 78 | | |
81 | 79 | | |
82 | | - | |
| 80 | + | |
83 | 81 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | 82 | | |
116 | 83 | | |
117 | 84 | | |
| |||
0 commit comments