Architecture
Liquid IAM is a fork of Casdoor v3.108.0, an open-source (Apache-2.0)
What it is
Liquid IAM is a fork of Casdoor v3.108.0, an open-source (Apache-2.0)
identity and access management platform. The fork keeps Casdoor's engine and
rebrands the surface to "Liquidity IAM"; upstream attribution is retained in
NOTICE, and UPSTREAM_REF pins the base version so the fork can be re-based.
How it's built
Casdoor is two parts, shipped as one service:
| Part | Tech | Role |
|---|---|---|
| Backend | Go (Beego) | OIDC/OAuth2 server, admin API, data store |
| Frontend | React (Create React App / craco) in web/ | Login UI + admin console |
The Docker build compiles the React frontend and embeds it into the Go binary
(the STANDARD image target). The result is a single container serving both the
API and the UI on one port.
- Node is pinned to 20.20.1 in the Dockerfile because Create React App (react-scripts) breaks on newer Node. Always build via Docker.
- Data store: SQLite in dev (
file:./data/liquid-iam.db); use Postgres in production.
Deployment topology
Browser ---> Liquid IAM :8000 ---> Google OAuth
| (Go/Beego + embedded React)
v
SQLite (dev) / Postgres (prod) [volume: liquid-iam-data]Relying parties (the Transfer Agent console + backends, and future Liquidity apps) talk to it over OIDC:
transfer-agent-fe --PKCE login--> Liquid IAM --JWT--> ta-api / subledger-api
| (verify via JWKS)
+-- Google (domain-gated @satschel.com)Key configuration (conf/app.conf)
| Setting | Dev value | Meaning |
|---|---|---|
appname | liquid-iam | app name |
httpport | 8000 | listen port |
driverName | sqlite | DB driver (use postgres in prod) |
dataSourceName | file:./data/liquid-iam.db | SQLite path (in the volume) |
origin | http://localhost:8000 | the canonical OIDC issuer (token/userinfo/JWKS/logout) |
originFrontend | http://localhost:8000 | where /login/oauth/authorize is served |
runmode | dev | Beego run mode |
origin is the issuer that relying parties must match exactly. In a hosted
environment set both origin and originFrontend to the public HTTPS URL - see
production.md.
Core entities
- Organization (
liquidity) - the namespace for users, apps, roles. - Application (e.g.
transfer-agent) -clientId,clientSecret,redirectUris,grantTypes, linked providers,signinItems, branding. - Provider (e.g.
google-satschel) -type=Google, OAuth client credentials, scopes, and theemailRegexdomain gate.
See integration.md for how these fit together when onboarding an app, and rebrand.md for what the fork changes.