This commit is contained in:
2026-11-26 19:36:49 +03:30
parent 4e114aa85a
commit bdc8791822
8 changed files with 752 additions and 921 deletions
-1
View File
@@ -108,7 +108,6 @@ namespace xIdentityService.Interfaces
//
#region Utilities ...
Task SyncAllAsync(CancellationToken cancellationToken = default);
Task InvalidateAsync(string policyName = null);
#endregion
}
-49
View File
@@ -1,49 +0,0 @@
using System.Threading;
using System.Threading.Tasks;
using xIdentityModels.Models;
using System.Collections.Generic;
namespace xIdentityService.Interfaces
{
/// <summary>
/// Implemented on xIds over IdentityServer4 ConfigurationDbContext ...
/// </summary>
public interface IXScopeSyncService
{
Task UpsertAsync(
XScopeDefinition scope,
CancellationToken cancellationToken = default
);
Task RemoveAsync(
string scopeName,
CancellationToken cancellationToken = default
);
Task<bool> IsApiResourceExistsAsync(
string apiResourceName,
CancellationToken cancellationToken = default
);
}
/// <summary>
/// Implemented on xIds over RoleManager&lt;IdentityRole&gt; ...
/// </summary>
public interface IXRoleSyncService
{
Task UpsertAsync(
XRoleDefinition role,
CancellationToken cancellationToken = default
);
Task RemoveAsync(
string roleName,
CancellationToken cancellationToken = default
);
Task<int> CountUsersInRoleAsync(
string roleName,
CancellationToken cancellationToken = default
);
Task<IEnumerable<string>> GetUserRolesAsync(
string userSelectByParam,
CancellationToken cancellationToken = default
);
}
}