using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using FrameworkDAL.DTO.KeyCloak; namespace FrameworkBLL.KeyCloak { public interface IKeyCloakBLL { Task CreateRealm(string RealmName); Task CreateClient(KeyCloakDTO ClientDTO); Task GetMasterAccessToken(); Task CreateUser(KeyCloakDTO KeyCloakDTO); Task AssignClientRoleToUser(KeyCloakDTO dto); Task CreateRole(KeyCloakDTO KeyCloakDTO); Task GetUserByUsername(KeyCloakDTO KeyCloakDTO); Task KeyCloakAuthenticateUser(KeyCloakDTO KeyCloakDTO); Task CreateClientRole(KeyCloakDTO KeyCloakDTO); Task SetUserPasswordByUsername(KeyCloakDTO KeyCloakDTO); Task CreateClientAsync(KeycloakClientDTO KeycloakClientDTO); Task GetClientsByRealmAsync(string realmName); Task GetClientByClientIdAsync(string realm, string clientId); Task DeleteClientAsync(string realm, string clientId); Task UpdateClientAsync(string realm, string clientId, KeycloakClientDTO updatedClientDTO); } }