Commit 1b336a7
committed
Update tests to verify session middleware is actually applied
Changed auth callbacks from 'fn ($request) => true' to session
checks that verify hasSession() and isStarted(). This ensures
tests validate that session middleware is properly applied, not
just that auth callbacks are invoked.
Updated tests:
- authentication works when APP_URL matches request domain
- localhost requests work by default regardless of APP_URL
- 127.0.0.1 requests work by default regardless of APP_URL
- custom stateful domains override APP_URL behavior
Verified test fails (403) when session middleware not applied.1 parent 89422ed commit 1b336a7
1 file changed
+32
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
53 | 60 | | |
54 | 61 | | |
55 | 62 | | |
| |||
164 | 171 | | |
165 | 172 | | |
166 | 173 | | |
167 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
168 | 182 | | |
169 | 183 | | |
170 | 184 | | |
| |||
177 | 191 | | |
178 | 192 | | |
179 | 193 | | |
180 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
181 | 202 | | |
182 | 203 | | |
183 | 204 | | |
| |||
193 | 214 | | |
194 | 215 | | |
195 | 216 | | |
196 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
197 | 225 | | |
198 | 226 | | |
199 | 227 | | |
| |||
0 commit comments