6.0.0-preview3
Pre-release
Pre-release
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 based on specific parameters. E.g:
// Revoke all the active access tokens attached to the user [email protected].
await _tokenManager.RevokeAsync(subject: "[email protected]", client: null, status: Statuses.Active, type: TokenTypeHints.AccessToken);