DataProtectorTokenProvider does not implement TimeProvider
Open
area-identity
enhancement
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 290
Description
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Describe the bug
DataProtectorTokenProvider does not implement TimeProvider. Instead it uses DateTimeOffset directly.
https://github.com/dotnet/aspnetcore/blob/main/src/Identity/Core/src/DataProtectorTokenProvider.cs
### Expected Behavior
I expected it to use TimeProvider so that I could mock time and test custom expiration policies.
### Steps To Reproduce
_No response_
### Exceptions (if any)
_No response_
### .NET Version
_No response_
### Anything else?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.