Commit 3e4c956
authored
Don't use temporary cache for silent & popup flows (#6586)
Silent and Popup flows don't need to use temporary cache because they
don't lose context the way the Redirect flow does. Applying this across
the board causes unnecessary stringification, storage, lookup and
parsing in those flows, especially since the code isn't shared across
those flows anyway.
This PR refactors the popup and silent flows to pass the request object
through the stack instead of storing and looking up in sessionStorage.
The redirect flow will continue to utilize sessionStorage for temp
cache.1 parent ce665da commit 3e4c956
File tree
15 files changed
+228
-342
lines changed- change
- lib
- msal-browser
- src
- interaction_client
- interaction_handler
- test
- interaction_client
- interaction_handler
- msal-common
- src
- client
- response
- test/response
15 files changed
+228
-342
lines changedLines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 45 | + | |
49 | 46 | | |
50 | 47 | | |
51 | 48 | | |
52 | 49 | | |
53 | | - | |
| 50 | + | |
54 | 51 | | |
55 | 52 | | |
56 | 53 | | |
| |||
212 | 209 | | |
213 | 210 | | |
214 | 211 | | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | 212 | | |
223 | 213 | | |
224 | 214 | | |
| |||
295 | 285 | | |
296 | 286 | | |
297 | 287 | | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | 288 | | |
304 | 289 | | |
305 | 290 | | |
| |||
340 | 325 | | |
341 | 326 | | |
342 | 327 | | |
343 | | - | |
| 328 | + | |
344 | 329 | | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
354 | 335 | | |
355 | 336 | | |
356 | 337 | | |
357 | 338 | | |
358 | 339 | | |
359 | | - | |
360 | | - | |
361 | | - | |
| 340 | + | |
362 | 341 | | |
363 | 342 | | |
364 | 343 | | |
| |||
372 | 351 | | |
373 | 352 | | |
374 | 353 | | |
375 | | - | |
376 | 354 | | |
377 | 355 | | |
378 | 356 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
143 | 142 | | |
144 | 143 | | |
145 | 144 | | |
| |||
463 | 462 | | |
464 | 463 | | |
465 | 464 | | |
466 | | - | |
467 | 465 | | |
468 | 466 | | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
| 467 | + | |
475 | 468 | | |
476 | 469 | | |
477 | 470 | | |
| |||
Lines changed: 1 addition & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
81 | 80 | | |
82 | 81 | | |
83 | 82 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | 83 | | |
92 | 84 | | |
93 | 85 | | |
| |||
137 | 129 | | |
138 | 130 | | |
139 | 131 | | |
140 | | - | |
141 | | - | |
142 | | - | |
| 132 | + | |
143 | 133 | | |
144 | 134 | | |
145 | 135 | | |
146 | 136 | | |
147 | 137 | | |
148 | 138 | | |
149 | 139 | | |
150 | | - | |
151 | 140 | | |
152 | 141 | | |
153 | 142 | | |
| |||
Lines changed: 2 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
120 | 119 | | |
121 | 120 | | |
122 | 121 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | 122 | | |
131 | 123 | | |
132 | 124 | | |
| |||
158 | 150 | | |
159 | 151 | | |
160 | 152 | | |
161 | | - | |
162 | 153 | | |
163 | 154 | | |
164 | 155 | | |
| |||
273 | 264 | | |
274 | 265 | | |
275 | 266 | | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | 267 | | |
282 | 268 | | |
283 | 269 | | |
| |||
304 | 290 | | |
305 | 291 | | |
306 | 292 | | |
307 | | - | |
| 293 | + | |
308 | 294 | | |
309 | 295 | | |
310 | 296 | | |
| |||
318 | 304 | | |
319 | 305 | | |
320 | 306 | | |
321 | | - | |
322 | | - | |
323 | 307 | | |
324 | 308 | | |
325 | 309 | | |
| |||
332 | 316 | | |
333 | 317 | | |
334 | 318 | | |
335 | | - | |
| 319 | + | |
336 | 320 | | |
337 | 321 | | |
0 commit comments