Commit 6d6331b
committed
Add security configuration and validation features
- Introduced SecurityConfigurationException to handle invalid security configurations.
- Added SecurityProfile enum to define predefined security profiles for different deployment scenarios.
- Implemented state validator registration methods in SecurityServiceExtensions, including support for function-based validators and composite validators.
- Enhanced TabSync middleware to fail fast on insecure configurations.
- Added FailFastOnInsecureConfiguration option to TabSyncOptions to throw exceptions on misconfigurations.
- Created comprehensive unit tests for secure store features, including security profile detection, state validator registration, and exception handling.1 parent e9ffe83 commit 6d6331b
14 files changed
Lines changed: 2194 additions & 191 deletions
File tree
- docs-site
- src/EasyAppDev.Blazor.Store
- Security
- TabSync
- tests/EasyAppDev.Blazor.Store.Tests/Security
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
339 | 361 | | |
340 | 362 | | |
341 | 363 | | |
| |||
376 | 398 | | |
377 | 399 | | |
378 | 400 | | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
379 | 432 | | |
380 | 433 | | |
381 | 434 | | |
| |||
804 | 857 | | |
805 | 858 | | |
806 | 859 | | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
807 | 864 | | |
808 | 865 | | |
809 | 866 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
137 | 160 | | |
138 | 161 | | |
139 | 162 | | |
140 | | - | |
141 | 163 | | |
142 | 164 | | |
143 | 165 | | |
| |||
0 commit comments