Replay improvements

- Fixed a bug in the replay cache
- Made use of replay cache optional
- Add more integration test cases of replay scenarios
- Use TryAddTransient so that custom implementations of interfaces are possible

# Conflicts:
#	aspnetcore-authentication-jwtbearer/src/AspNetCore.Authentication.JwtBearer/DPoP/DPoPServiceCollectionExtensions.cs
This commit is contained in:
Joe DeCock 2025-12-11 19:50:58 -06:00
parent 5fec3bc30c
commit 31aa865c8d

View file

@ -21,6 +21,7 @@ public static class DPoPServiceCollectionExtensions
services.AddOptions<DPoPOptions>();
services.AddTransient<DPoPJwtBearerEvents>();
services.TryAddTransient<IDPoPProofValidator, DPoPProofValidator>();
services.TryAddTransient<IDPoPNonceValidator, DefaultDPoPNonceValidator>();
services.AddTransient<DPoPExpirationValidator>();
services.TryAddTransient<IDPoPProofValidator, DPoPProofValidator>();