Commit a11e5ee
TASK-036 review: document auth_handler_ptr deferral (findings 4 & 7)
- Add a TODO comment on auth_handler_ptr in create_webserver.hpp
documenting the deferred migration to std::optional<http_response>
(findings 4 & 7: code-quality-reviewer + code-simplifier). Changing
the public typedef mid-milestone would cascade into
centralized_authentication.cpp and authentication.cpp; scoped out.
- Rename local variable auth_resp -> auth_rejection_response in the
auth_handler alias hook (webserver_aliases.cpp) to clarify that null
means "allow" and non-null means "reject with this response" — the
minimum improvement from finding 7 recommendation (b).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 5d49d42 commit a11e5ee
2 files changed
Lines changed: 20 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
198 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
199 | 204 | | |
200 | | - | |
| 205 | + | |
201 | 206 | | |
202 | 207 | | |
203 | | - | |
204 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
205 | 211 | | |
206 | 212 | | |
207 | 213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
81 | 90 | | |
82 | 91 | | |
83 | 92 | | |
| |||
0 commit comments