Liquidity Docs

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:

PartTechRole
BackendGo (Beego)OIDC/OAuth2 server, admin API, data store
FrontendReact (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)

SettingDev valueMeaning
appnameliquid-iamapp name
httpport8000listen port
driverNamesqliteDB driver (use postgres in prod)
dataSourceNamefile:./data/liquid-iam.dbSQLite path (in the volume)
originhttp://localhost:8000the canonical OIDC issuer (token/userinfo/JWKS/logout)
originFrontendhttp://localhost:8000where /login/oauth/authorize is served
runmodedevBeego 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 the emailRegex domain gate.

See integration.md for how these fit together when onboarding an app, and rebrand.md for what the fork changes.