Liquidity Docs
API Reference

API: Liquid IAM (OIDC / OAuth2)

Liquid IAM is a fork of Casdoor (Apache-2.0) rebranded to 'Liquidity IAM'. It is

Liquid IAM is a fork of Casdoor (Apache-2.0) rebranded to "Liquidity IAM". It is the OIDC issuer that gates the operator console via Google SSO restricted to @satschel.com. The issuer URL is configured per environment.

OIDC / OAuth2 endpoints

With issuer = origin (the configured base URL):

PurposePath
Discovery/.well-known/openid-configuration
JWKS (verify JWTs)/.well-known/jwks
Authorize/login/oauth/authorize
Token/api/login/oauth/access_token
Refresh/api/login/oauth/refresh_token
UserInfo/api/userinfo
Logout (RP-initiated)/api/logout

Login flow (authorization code + PKCE)

  1. The console redirects to /login/oauth/authorize?client_id=...&redirect_uri=.../callback&....
  2. IAM delegates to Google; the provider's emailRegex gates the domain to @satschel.com (JIT user creation on first login).
  3. Google returns to IAM; IAM redirects to the console's /callback with a code.
  4. The console exchanges the code for an access token + id token (/api/login/oauth/access_token) and stores them in sessionStorage.
  5. Backends verify the access token against /.well-known/jwks.

The Google authorize URL includes prompt=select_account so users can switch accounts after logout.

Logout

GET /api/logout?id_token_hint=...&post_logout_redirect_uri=... performs an RP-initiated logout and redirects to post_logout_redirect_uri only if that URI is registered in the app's redirect URIs (otherwise it returns JSON).

Application / provider model (integration)

  • Organization liquidity - namespace for users and apps.
  • Application transfer-agent - has clientId, redirectUris, grantTypes (authorization_code, refresh_token), linked providers, enablePassword=false.
  • Provider google-satschel - type=Google, emailRegex gating @satschel.com.

To integrate a relying party, point it at this issuer with the app's clientId, org liquidity, app name transfer-agent, scope openid profile email, and add its /callback to the app's redirectUris (and its origin to post-logout URIs).

How the TA consumes it

  • Console (transfer-agent-fe): casdoor-js-sdk PKCE flow. Env: VITE_OIDC_ISSUER, VITE_OIDC_CLIENT_ID, VITE_OIDC_APP_NAME=transfer-agent, VITE_OIDC_ORG_NAME=liquidity.
  • Backends (ta-api, subledger-api): coreos/go-oidc verifies the JWT against JWKS. Env: TA_OIDC_ISSUER_URL, TA_OIDC_CLIENT_ID. Empty issuer = the acting operator is the verified identity.

See ../third-party.md and ../deployment.md for setup and the external Google Cloud config checklist.