diff --git a/modules/identity/src/Volo.Abp.Identity.AspNetCore/Volo/Abp/Identity/AspNetCore/AbpIdentitySessionCookieAuthenticationOptionsExtensions.cs b/modules/identity/src/Volo.Abp.Identity.AspNetCore/Volo/Abp/Identity/AspNetCore/AbpIdentitySessionCookieAuthenticationOptionsExtensions.cs index 68228defd9..da5960081e 100644 --- a/modules/identity/src/Volo.Abp.Identity.AspNetCore/Volo/Abp/Identity/AspNetCore/AbpIdentitySessionCookieAuthenticationOptionsExtensions.cs +++ b/modules/identity/src/Volo.Abp.Identity.AspNetCore/Volo/Abp/Identity/AspNetCore/AbpIdentitySessionCookieAuthenticationOptionsExtensions.cs @@ -60,7 +60,7 @@ public static class AbpIdentitySessionCookieAuthenticationOptionsExtensions var identitySessionChecker = httpContext.RequestServices.GetRequiredService(); using (currentTenant.Change(principal.FindTenantId())) { - return await identitySessionChecker.IsValidateAsync(sessionId); + return await identitySessionChecker.IsValidAsync(sessionId); } } } diff --git a/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IIdentitySessionChecker.cs b/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IIdentitySessionChecker.cs index bb10480a34..b0c1a47f6a 100644 --- a/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IIdentitySessionChecker.cs +++ b/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IIdentitySessionChecker.cs @@ -4,5 +4,5 @@ namespace Volo.Abp.Identity; public interface IIdentitySessionChecker { - Task IsValidateAsync(string sessionId); + Task IsValidAsync(string sessionId); } diff --git a/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/NullIdentitySessionChecker.cs b/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/NullIdentitySessionChecker.cs index 4d8c7bf050..bf5a803e6e 100644 --- a/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/NullIdentitySessionChecker.cs +++ b/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/NullIdentitySessionChecker.cs @@ -5,7 +5,7 @@ namespace Volo.Abp.Identity; public class NullIdentitySessionChecker : IIdentitySessionChecker, ISingletonDependency { - public Task IsValidateAsync(string sessionId) + public Task IsValidAsync(string sessionId) { return Task.FromResult(true); } diff --git a/modules/identity/test/Volo.Abp.Identity.AspNetCore.Tests/Volo/Abp/Identity/AspNetCore/FakeIdentitySessionChecker.cs b/modules/identity/test/Volo.Abp.Identity.AspNetCore.Tests/Volo/Abp/Identity/AspNetCore/FakeIdentitySessionChecker.cs index 0b4d91c586..f560e38e68 100644 --- a/modules/identity/test/Volo.Abp.Identity.AspNetCore.Tests/Volo/Abp/Identity/AspNetCore/FakeIdentitySessionChecker.cs +++ b/modules/identity/test/Volo.Abp.Identity.AspNetCore.Tests/Volo/Abp/Identity/AspNetCore/FakeIdentitySessionChecker.cs @@ -14,7 +14,7 @@ public class FakeIdentitySessionChecker : IIdentitySessionChecker, ISingletonDep { public HashSet RevokedSessionIds { get; } = new(); - public Task IsValidateAsync(string sessionId) + public Task IsValidAsync(string sessionId) { return Task.FromResult(!RevokedSessionIds.Contains(sessionId)); }