diff --git a/src/OpenIddict.EntityFramework/Stores/OpenIddictAuthorizationStore.cs b/src/OpenIddict.EntityFramework/Stores/OpenIddictAuthorizationStore.cs index 1778ca94..1c77d3f8 100644 --- a/src/OpenIddict.EntityFramework/Stores/OpenIddictAuthorizationStore.cs +++ b/src/OpenIddict.EntityFramework/Stores/OpenIddictAuthorizationStore.cs @@ -369,7 +369,7 @@ namespace OpenIddict.EntityFramework // Bind the authorization to the specified application, if applicable. if (!string.IsNullOrEmpty(descriptor.ApplicationId)) { - var application = await Applications.FindAsync(new object[] { ConvertIdentifierFromString(descriptor.ApplicationId) }, cancellationToken); + var application = await Applications.FindAsync(cancellationToken, ConvertIdentifierFromString(descriptor.ApplicationId)); if (application == null) { throw new InvalidOperationException("The application associated with the authorization cannot be found."); diff --git a/src/OpenIddict.EntityFramework/Stores/OpenIddictTokenStore.cs b/src/OpenIddict.EntityFramework/Stores/OpenIddictTokenStore.cs index 1e6135b8..af7d64f8 100644 --- a/src/OpenIddict.EntityFramework/Stores/OpenIddictTokenStore.cs +++ b/src/OpenIddict.EntityFramework/Stores/OpenIddictTokenStore.cs @@ -430,7 +430,7 @@ namespace OpenIddict.EntityFramework // Bind the token to the specified client application, if applicable. if (!string.IsNullOrEmpty(descriptor.ApplicationId)) { - var application = await Applications.FindAsync(new object[] { ConvertIdentifierFromString(descriptor.ApplicationId) }, cancellationToken); + var application = await Applications.FindAsync(cancellationToken, ConvertIdentifierFromString(descriptor.ApplicationId)); if (application == null) { throw new InvalidOperationException("The application associated with the token cannot be found."); @@ -442,7 +442,7 @@ namespace OpenIddict.EntityFramework // Bind the token to the specified authorization, if applicable. if (!string.IsNullOrEmpty(descriptor.AuthorizationId)) { - var authorization = await Authorizations.FindAsync(new object[] { ConvertIdentifierFromString(descriptor.AuthorizationId) }, cancellationToken); + var authorization = await Authorizations.FindAsync(cancellationToken, ConvertIdentifierFromString(descriptor.AuthorizationId)); if (authorization == null) { throw new InvalidOperationException("The authorization associated with the token cannot be found.");