Releases: Hawxy/Auth0Net.DependencyInjection
Releases · Hawxy/Auth0Net.DependencyInjection
v5.2.0
v5.1.0
New Features
AddAuth0RateLimitResilienceis now available for open usage and the experimental attribute has been removed. See the README section for usage information.
Misc
- Updated
Auth0.*clients to7.36.0 - Updated
FusionCacheto2.2.0 - Updated
Microsoft.Extensions.Http.Resilienceto8.10.0&9.4.0for the respective .NET versions.
v5.0.0
Breaking Changes
- Dropped .NET Standard 2.0 target, added .NET Framework 4.8
- Updated FusionCache to v2.0.0
- Updated
Microsoft.Extensions.Caching.Memoryto 9.0.1
New Features
- Added new
AddAuth0RateLimitResilienceextension method that applies enhanced rate limit behavior to the Auth0 client. This'll read the rate limit header and backoff as required, avoiding the unreliable random-backoff approach built into the client. Give this a go if you regularly hit Auth0's rate limit as it should be more reliable. This API is marked as experimental and may be modified or removed at any time.
Misc
- Bumped
Auth0.*packages to7.32.0
v4.0.0
Breaking Changes
- Dropped official support for .NET 6/7 and removed testing targets.
- Added .NET 9 target and relevant dependencies
Misc
- Bumped
Microsoft.Extensions.Caching.Memoryto resolve CVE warnings. - Bumped
ZiggyCreatures.FusionCacheto1.4.1 - Bumped
Auth0.*packages to7.29.0
v3.2.0
Features
- Add support for
netstandard2.0targets (contributed by @stevenvolckaert).
Misc
- Update Auth0.NET to 7.26.1
- Update FusionCache to 1.0.0
v3.1.0
v3.0.0 🎉
This is the largest overhaul of this project's internals since creation and includes some learnings from my other project Fga.Net. Cumulative changes should result in better overall performance and reduced allocations.
Breaking Changes
- Changed namespace of DI extensions to match package (previously nested within the Microsoft namespace)
The scope of the below breaks are minimal and should not impact the vast majority of existing usages.
- Replaced the internal caching package
LazyCachewith FusionCache. - Removed
TokenExpiryBufferfrom configuration options, cache internals now uses a mix of background refresh and percentage-based buffering to make this redundant. Token refresh blocking should no longer occur in high-throughput systems. - Renamed Management token's
AudienceDomainOverridetoAudience. - Updated Auth0 clients to
7.20.0
New Features
- Clients are now registered as singletons instead of being scoped and thus can be used within singleton services without issue. (Closes #14)
IAuthTokenCachenow has cancellation token support. (Closes #16)IAuthTokenCachefunction calls returnValueTaskinstead ofTask.
Misc
- Modernized codebase with log generators, file-scoped namespaces, implicit usings & type sealing.
- Modernized all sample projects.
- Automated all build and publish infrastructure with
Nuke.Build - Embedded debug symbols and enabled deterministic builds.
Full Changelog: v2.0.0...v3.0.0
v2.0.0 🚀
Breaking Changes
- Dropped support for .NET Core 3.1 & 5.0, supported targets are now .NET 6 & 7.
- The package now registers the recently added
IManagementApiClientinterface instead of theManagementApiClientclass. Please update your class dependencies accordingly.
public class MyAuth0Service : IAuth0Service
{
- private readonly ManagementApiClient _managementApiClient;
- public MyAuth0Service(ManagementApiClient managementApiClient)
{
_managementApiClient = managementApiClient;
}
public class MyAuth0Service : IAuth0Service
{
+ private readonly IManagementApiClient _managementApiClient;
+ public MyAuth0Service(IManagementApiClient managementApiClient)
{
_managementApiClient = managementApiClient;
}