using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using FrameworkDAL.DTO.KeyCloak; namespace FrameworkDAL.CustomCode.KeyCloak { public interface IKeyCloakDAL { Task CreateRealm(string RealmName); Task CreateClient(KeyCloakDTO KeyCloakDTO); Task GetMasterAccessToken(); Task SetUserPasswordByUsername(KeyCloakDTO keyCloakDTO); Task CreateUser(KeyCloakDTO KeyCloakDTO); Task CreateRole(KeyCloakDTO KeyCloakDTO); Task AssignClientRoleToUser(KeyCloakDTO dto); Task GetUserByUsername(KeyCloakDTO KeyCloakDTO); Task KeyCloakAuthenticateUser(KeyCloakDTO KeyCloakDTO); Task CreateClientRole(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); } }