Commit ea3c06d
authored
fix: complete transport pool and deterministic generation in SimpleFakeCredentialGenerator (#823)
* fix: use all transport types and deterministic generation in SimpleFakeCredentialGenerator
Include hybrid, internal and smart-card transports in the fake
credential pool so generated credentials are indistinguishable from
real ones. Replace random generation with a deterministic HMAC-based
seed derived from the username and a server secret, ensuring stable
responses across requests without relying on cache.
* fix: inject cache service into SimpleFakeCredentialGenerator
Use CacheItemPoolInterface with nullOnInvalid() instead of hardcoded
null so the cache is actually used when available in the container.
* fix: inject cache service into SimpleFakeCredentialGenerator and fix coding standards
Use CacheItemPoolInterface with nullOnInvalid() instead of hardcoded
null so the cache is actually used when available in the container.
Apply coding standards fixes across the codebase.
* Refactor: Clean up imports and remove duplicates across denormalizer and service classes
- Removed duplicate function imports and organized them in multiple denormalizer classes including CredentialRecordDenormalizer, ExtensionDescriptorDenormalizer, and others.
- Ensured consistent use of function imports such as `array_key_exists`, `assert`, `count`, and `in_array`.
- Updated import statements in various service classes like DistantResourceMetadataService, FidoAllianceCompliantMetadataService, and others for better clarity and maintainability.
- Cleaned up unused imports in test files and ensured proper organization of function imports.1 parent 7bdf75d commit ea3c06d
File tree
2 files changed
+23
-10
lines changed- src
- symfony/src/Resources/config
- webauthn/src
2 files changed
+23
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
85 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
86 | 89 | | |
87 | 90 | | |
88 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
51 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
52 | 59 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
57 | 67 | | |
58 | | - | |
| 68 | + | |
59 | 69 | | |
60 | 70 | | |
61 | | - | |
62 | | - | |
| 71 | + | |
| 72 | + | |
63 | 73 | | |
64 | 74 | | |
65 | 75 | | |
| |||
0 commit comments