This release introduces the following changes:
-
On .NET 7.0 and higher, the Entity Framework Core stores now use bulk updates and bulk deletes when large amounts of entities are expected to be updated/removed. If necessary, bulk operations can be disabled by calling
options.DisableBulkOperations()
in the OpenIddict EF Core stores options. -
A new
IOpenIddictTokenManager.RevokeByAuthorizationIdAsync()
API was introduced to dramatically improve the performance of token revocation when using the Entity Framework Core (.NET 7.0+-only) - or MongoDB stores. -
The Entity Framework Core stores that use
IDbTransaction
were updated to run these operations inside execution strategies, which allows using the built-in stores withoptions.EnableRetryOnFailure()
without having to override them. -
The
IOpenIddictAuthorizationManager.PruneAsync()
andIOpenIddictTokenManager.PruneAsync()
APIs (and the corresponding stores methods) now return the number of authorizations/tokens that were removed. -
Constants for the standard claim request members were added (thanks @davhdavh! ❤️)
Note: 5.0.0-preview3
is likely one of the very last previews before RTM ships later this month. As such, OpenIddict users will be invited to start testing 5.0.0-preview3
and share their feedback during the next few weeks.