Sample project using KeyCloak and Dapper How to start project Native Install .NET 8.0 SDK Run dotnet build Install Postgres Create keycloak database Install KeyCloak 22.0.5 Copy keycloakConfig/realm.json to keycloak-22.0.5/data/import directory Go to keycloak-22.0.5/bin Run kc.[sh/bat] start-dev --import-realm --db postgres --db-username <username> --db-password <password> Docker Run: docker compose up Add an entry to hosts file for linux /etc/hosts or for windows C:\Windows\System32\Drivers\etc\hosts: 127.0.0.1 mykeycloak