added findByUserNameAsync to the interface and service

This commit is contained in:
Dominic Villemure
2024-06-06 18:04:42 -04:00
parent 0da652b4a4
commit 4a5abf59eb
2 changed files with 19 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ public interface IIdentityService
Task<UserModel?> FindUserByIdAsync(string id);
Task<UserModel?> GetCurrentUserAsync();
Task<UserModel?> FindUserByEmailAsync(string id);
Task<UserModel?> GetUserByUserNameAsync(string userName);
Task<bool> IsInRoleAsync(string userId, string role);
Task<bool> AuthorizeAsync(string userId, string policyName);
Task<Result> AddRoleAsync(string userId, string role);