Added skoruba user service integration test
This commit is contained in:
@@ -30,11 +30,11 @@ public interface ISkorubaUserService
|
||||
|
||||
[Log]
|
||||
[Audit]
|
||||
Task<Result> AddRoleAsync(Guid userId, string roleId, CancellationToken cancellationToken = default);
|
||||
Task<Result> AddRoleAsync(Guid userId, Guid roleId, CancellationToken cancellationToken = default);
|
||||
|
||||
[Log]
|
||||
[Audit]
|
||||
Task<Result> RemoveRoleAsync(Guid userId, string roleId, CancellationToken cancellationToken = default);
|
||||
Task<Result> RemoveRoleAsync(Guid userId, Guid roleId, CancellationToken cancellationToken = default);
|
||||
|
||||
[Log]
|
||||
Task<Result<Role[]>> GetAvailableRolesAsync(string? searchText = null, int page = 1, int pageSize = 50, CancellationToken cancellationToken = default);
|
||||
@@ -45,6 +45,9 @@ public interface ISkorubaUserService
|
||||
[Log]
|
||||
Task<Result<Models.Security.Claim[]>> GetUserClaimsAsync(Guid userId, int page = 1, int pageSize = 50, CancellationToken cancellationToken = default);
|
||||
|
||||
[Log]
|
||||
Task<Result<Models.Security.Claim[]>> GetRoleClaimsAsync(Guid roleId, int page = 1, int pageSize = 50, CancellationToken cancellationToken = default);
|
||||
|
||||
[Log]
|
||||
Task<Result> InvalidateUserSessionAsync(Guid userId, CancellationToken cancellationToken = default);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user