Architecture of keycloak/keycloak
keycloak/keycloak is 10,916 source files holding 96,399 symbols across 30 modules, written mainly in Java, TypeScript, Shell. The largest module is services, with 1,762 files, and 311 files are entry points into the dependency graph.
How keycloak fits together
The services directory is the largest module by file count and holds much of the server-side code. Endpoints such as authzen/services/src/main/java/org/keycloak/authorization/authzen/AuthZenResource.java receive incoming requests and pass them to the server logic. The server-spi-private module contains the internal service provider interfaces that the server uses to plug in components such as storage and federation. The core module holds shared code used across the server. The integration/admin-client-core directory contains the Java client resources, such as AggregatePoliciesResource.java, that applications use to call the administration API. The js directory holds the browser-side code that is built with TypeScript.
Largest modules
- services: 1,762 files and 168,716 lines of code
- testsuite: 1,114 files and 162,824 lines of code
- tests: 1,055 files and 169,787 lines of code
- js: 1,052 files and 114,559 lines of code
- model: 915 files and 82,385 lines of code
- server-spi-private: 673 files and 35,180 lines of code
- core: 412 files and 30,716 lines of code
- test-framework: 395 files and 17,908 lines of code
Languages
By file count: Java 8,651 files, TypeScript 1,045 files, Shell 67 files, JavaScript 60 files, Dockerfile 3 files, Python 2 files.
Documentation
Repowise documents keycloak in 7,097 pages generated from the source.
More on keycloak: summary and FAQ, codebase overview, code health.