This release introduces the following changes:
-
The existing
IOpenIddictAuthorizationManager.FindAsync(...)
andIOpenIddictTokenManager.FindAsync(...)
overloads have been merged and replaced by a single method where all the parameters are now optional (for instance, if a nullsubject
value is specified when callingIOpenIddictAuthorizationManager.FindAsync(...)
, the returned collection will contain authorizations for all users). -
New
IOpenIddictAuthorizationManager.RevokeAsync(...)
andIOpenIddictTokenManager.RevokeAsync(...)
APIs have been introduced to allow easily revoking authorizations or tokens associated based on specific parameters. E.g:
// Revoke all the active access tokens attached to the user alice@wonderland.com.
await _tokenManager.RevokeAsync(subject: "alice@wonderland.com", client: null, status: Statuses.Active, type: TokenTypeHints.AccessToken);