Browse Source
Fix the invalid LINQ filter used in OpenIddictEntityFrameworkCoreAuthorizationStore.FindByApplicationIdAsync()
pull/2245/head
Simon Wacker
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
src/OpenIddict.EntityFrameworkCore/Stores/OpenIddictEntityFrameworkCoreAuthorizationStore.cs
|
|
|
@ -308,7 +308,7 @@ public class OpenIddictEntityFrameworkCoreAuthorizationStore<TAuthorization, TAp |
|
|
|
|
|
|
|
return (from authorization in Authorizations.Include(authorization => authorization.Application).AsTracking() |
|
|
|
join application in Applications.AsTracking() on authorization.Application!.Id equals application.Id |
|
|
|
where application.Id!.Equals(identifier) |
|
|
|
where application.Id!.Equals(key) |
|
|
|
select authorization).AsAsyncEnumerable(cancellationToken); |
|
|
|
} |
|
|
|
|
|
|
|
@ -1146,4 +1146,4 @@ public class OpenIddictEntityFrameworkCoreAuthorizationStore<TAuthorization, TAp |
|
|
|
|
|
|
|
return TypeDescriptor.GetConverter(typeof(TKey)).ConvertToInvariantString(identifier); |
|
|
|
} |
|
|
|
} |
|
|
|
} |