What this is about
A project in the hub has one CIAS module. It states what the identity part of the system built from the project will contain: which parts of CIAS are built, whether there are tenants, how people register, how mails are sent, what the audit records, and how strongly someone must have signed in to use the administration.
You edit the module in the CIAS portal. The portal is a user interface of the hub, the software factory. The hub opens it from the project. The built system has no CIAS portal and no hub. It does not bring admin pages of its own for CIAS either. The portal does not manage the users, tenants and roles of a running installation.
The page map
flowchart LR
PRJ["Hub<br/>project"] -- "?moduleId=…&projectId=…" --> OV
DIR["opened directly"] --> LIST["/<br/>CIAS modules of all projects"]
LIST --> OV["/modules/{id}<br/>overview"]
OV --> AREAS["Areas<br/>Identity provider · Tenants · CIAS parts<br/>Registration · Mail · Audit<br/>Administration · Sign-in & security"]
OV -. "Values per environment" .-> ENV["Hub<br/>Operations › Environments"]
OV -- "To the project in the hub" --> PRJ
LIST -. "no session" .-> LOGIN["/login<br/>sign-in with Keycloak"]
The left sidebar shows CIAS modules at the top. As soon as a module is open, its nine areas follow below. At the bottom there is To the project in the hub (or To the hub if no project came along) and the menu with Sign out. The way back only appears if the hub’s address is set in NUXT_PUBLIC_HUB_BASE_URL.
When: In the hub, someone jumps from a project into the CIAS portal.
The hub appends ?moduleId=<ID of the CIAS module>&projectId=<ID of the project> to the address. The portal forwards straight to the overview of this module. Every link in the portal carries projectId along, so the way back leads to the project.
Result: Overview of the CIAS module, way back to the project.
When: Someone opens the portal without moduleId.
The start page lists the CIAS modules of all projects, grouped by project. Each card names the runtime (or “not assigned to a runtime”), the tenant mode (or “Tenant mode open”) and, if switched on, “Registration”. If a project has more than one CIAS module, a red box appears at the top: a project has exactly one identity space.
Result: List of CIAS modules. If it is empty, it says “No CIAS module created yet.” A CIAS module is created when a CIAS licence is activated in a project.
The overview
The overview of a module has three parts:
- Profile: project, runtime and what each area decided, in the words of the area (“MULTI”, “Keycloak”, “SMTP”). An arrow leads into the area. You set project and runtime in the hub, not here.
- Open decisions: everything that prevents a build. These are the errors from all areas and, as long as the module is not assigned to a runtime, the runtime itself. If nothing is open, it says “Nothing that blocks the build.”
- Buttons: Values per environment leads to the project’s Operations › Environments page in the hub (only with
projectId). Download the frame of the CIAS service only appears if CIAS is a service of its own.
The runtime decides where CIAS runs. In the hub, a runtime is a process that modules run in. There is no field “embedded or service of its own”.
When: The runtime of the CIAS module also holds CDMS modules.
CIAS becomes part of these applications. There is no frame of its own to download: CIAS comes with the frame of the CDMS modules.
Result: Profile: “embedded in …”.
When: The CIAS module has a runtime to itself.
The build produces a standalone CIAS service. The overview offers its frame as a ZIP, a Maven project that reads this module from the hub on every build. The generator client's secret is not included.
Result: Profile: “service of its own”.
When: The CIAS module is in no runtime.
This is allowed while modelling. “Open decisions” then lists the runtime. The guide for the clients in the identity provider stays empty, because it depends on the runtime.
Result: No build until a runtime is chosen.
The terms are explained in Operating modes.

Build and environment
Every area carries one or two badges next to its title. Many sections have one of their own as well.
| Badge | Meaning in the portal | What it turns into |
|---|---|---|
| Build | “Takes effect with the next build” | The generator builds it into the system: as part of the pom.xml, as a generated class or as a value in the configuration |
| Environment | “Becomes an environment variable; the hub sets its value per environment” | An environment variable whose value each environment has for itself. It is kept in the hub under Operations › Environments |
Both usually end up in the same place. On every build the generator writes the file cias-configuration.yaml, and the application imports it at startup. Every value that is set appears there as ${VARIABLE:value}. That is Spring’s notation for “take the variable, otherwise this value”. An excerpt:
# Generated on every build from the CIAS module of this project in the CodamAI hub
codamai:
cias:
user:
enabled: "${CIAS_USER:true}"
notification:
mail: "${CIAS_MAIL:smtp}"
administration:
roles:
write:
level: "${CIAS_ADMINISTRATION_ROLES_WRITE_LEVEL:mfa}"
An empty field writes nothing, and CIAS’s own default applies. The Operations › Environments page in the hub shows, next to each variable, the value the build writes from the module. How the file gets into the frame is described in Configuration decides what runs.
The areas
Identity provider
Badge: build. This states who handles sign-in. The choice is Keycloak, which is also the default.
| Field | What it does | Variable |
|---|---|---|
| Provider | which adapter CIAS uses. Written only if users, roles or registration are switched on. Otherwise CIAS writes nothing to the provider and only reads the token | CIAS_IAM_PROVIDER |
The second tab Guide: clients lists the clients you create by hand in the realm if you set it up yourself. The list follows from the runtime and the CIAS parts: one resource client per process, an admin client as soon as CIAS writes to the provider, and a client for password links (optional). If CIAS is a service of its own, the lookup client of the CDMS modules and the declaration client are added. The client IDs are suggestions. You keep issuer, client IDs and secrets per environment in the hub under Operations › Environments. More about the adapter: The Keycloak adapter.

Tenants
Badges: build and environment. This states whether the system has tenants. A tenant is a customer with data of its own, kept separate.
| Field | What it does | Variable |
|---|---|---|
| Tenant mode (build and environment) | SINGLE: without tenants, the tenant in the token is ignored. MULTI: a database of its own per tenant. There is deliberately no default: every environment sets the variable, or the system does not start. The value here decides what the build prepares the registration for | CODAMAI_PERSISTENCE_TENANT_MODE, required in every environment |
| Tenant type (not yet effective) | only with MULTI: STATIC (tenant as a user attribute, a person belongs to exactly one tenant) or DYNAMIC (tenant as an organization in the identity provider, several memberships). The build does not read it. The portal derives findings from it about what has to be prepared in the identity provider. A registration with “new tenant” always creates an organization; with STATIC the portal warns about that | none |
More on this: SINGLE and MULTI across both modules and Static and dynamic tenants.

SINGLE without tenants or MULTI with a database of its own per tenant.CIAS parts
Badge: build. Here you choose the building blocks the system carries, and the foundations of the roles.
| Field | What it does | Variable |
|---|---|---|
| Tenant administration | publishes /cias/admin/tenants. Tenants exist without it too, just not through this interface | CODAMAI_CIAS_TENANCY_REST |
| Users | business user records in CIAS and /cias/admin/users | CIAS_USER |
| Roles and assignments | role catalog, assignments with deadlines, reconciliation with the identity provider. Also switches on the pass that closes expired deadlines | CIAS_AUTHORIZATION, CIAS_ROLE_SYNCHRONIZATION |
| Registration | how a person becomes a user, including the mails. Generates the class with the initial roles | CIAS_REGISTRATION |
| Platform admin roles | realm roles that administer the platform. Empty means nobody, never everybody | CODAMAI_CIAS_PLATFORM_ADMINISTRATOR_ROLES |
| Realm floor roles | what every account stands on. Ensured at startup, never granted | CIAS_REALM_FLOOR_ROLES |
| Roles with read access to the declaration | who may read GET /cias/fetch | CODAMAI_CDMS_CIAS_READER_ROLES |
| Role synchronization interval | ISO-8601, for example PT5M. Only with roles and assignments | CIAS_ROLE_SYNCHRONIZATION_INTERVAL |
| Reconcile at start | brings roles and groups into the identity provider at startup. If the provider is missing, that is a warning in the log | CIAS_ROLE_STARTUP |
Under Preconditions (badge environment) the portal names what has to be right outside the area, for example an admin client per environment. More on this: The platform’s realm roles, Reconciliation with Keycloak, Time-limited roles.

Registration
Badge: build. The area has three tabs: variants, roles of the first day, limits and deadlines. The build only writes the values if registration is switched on under CIAS parts.
| Field | What it does | Variable |
|---|---|---|
| Variants | per variant (self-registration, invitation, by tenant admin, by platform admin): on or off, where the tenant comes from, confirm the address, approval, validity of the link, caller roles, form fields. This is structure and appears in the file without a variable | only the approval of self-registration: CIAS_SELF_SERVICE_APPROVAL |
| Roles of the first day | per situation (founder, member, without tenant) the roles with level Module or Realm. The build generates the class CiasRegistrationRolesConfiguration from them | none |
| Limits | registrations per window and client, self-registrations per address and per client | CIAS_REGISTRATION_RATE_LIMIT, …_ADDRESS, …_CLIENT |
| Validity of the password link | ISO-8601 | CIAS_PASSWORD_SETUP_VALID_FOR |
| Deadlines | when unconfirmed and unapproved registrations are discarded and finished ones are deleted | CIAS_REGISTRATION_CLEANUP_UNVERIFIED_AFTER, …_PENDING_APPROVAL_AFTER, …_PURGE_AFTER |
If an enabled variant ends in a situation without a role, the build stops. Whoever founds a tenant needs a role to administer it. More on this: One flow, four variants, Initial roles as a rule set, Clean up abandoned registrations.

Badges: build and environment. This states how the system sends CIAS’s mails and who may change their wording. The running installation edits the text itself.
| Field | What it does | Variable |
|---|---|---|
| Delivery (environment) | SMTP: deliver, LOG: only write to the log. You keep SMTP access and sender per environment in the hub | CIAS_MAIL |
| Edit templates at runtime (build) | On: templates live in the database. Off: only the packaged texts. Default: on for a service of its own, off for an embedded CIAS | none |
| Fallback language | the language used if a mail does not exist in the person’s language | CIAS_NOTIFICATION_FALLBACK_LANGUAGE |
| Edit every template | realm roles. Empty: platform-admin and mail-template-admin | CIAS_NOTIFICATION_EDITOR_ROLES |
| Rewords its own tenant’s mails | one role. Empty: tenant-admin | CIAS_NOTIFICATION_TENANT_EDITOR_ROLE |
| Mails a tenant may reword | platform default (invitation, membership invitation, welcome) or own selection. An empty own selection means: no tenant rewords anything | CIAS_NOTIFICATION_TENANT_EDITABLE |
More on this: Sending and branding, Edit templates.

Audit
Badges: build and environment. This states what the audit trail records and for how long. Without a setting, CIAS records everything and keeps it forever.
| Field | What it does | Variable |
|---|---|---|
| Free text | RECORD: reasons typed by admins appear in the trail (default). OMIT: [omitted] appears instead of the reason | CIAS_AUDIT_FREE_TEXT |
| Period | ISO-8601, for example P365D. Empty: forever | CIAS_AUDIT_RETENTION_PERIOD |
| Action | ANONYMIZE: actor and details are cleared (default). DELETE: the entry disappears | CIAS_AUDIT_RETENTION_ACTION |
| Roles that read the trail of their own tenant | who reads the trail of their own tenant. Platform admins always read everything | CIAS_AUDIT_TENANT_READER_ROLES |
More on this: Audit in CIAS and Read the audit.

Administration
Badges: build and environment. Here you set how strongly and how recently a person must have signed in to read or change users, groups, roles, tenants and registrations in the built system through CIAS’s admin API. For each area there is a level and a maximum age for reading and for changing, twenty fields in all.
| Field | What it does | Variable |
|---|---|---|
| Level | “Any sign-in” (empty), “Basic sign-in”, “Second factor” or “Phishing-resistant” | CIAS_ADMINISTRATION_<AREA>_<ACCESS>_LEVEL, for example CIAS_ADMINISTRATION_USERS_WRITE_LEVEL |
| Maximum age | how long ago the sign-in may be at most, whole seconds from 1. Empty: any. Without a level it asks for a fresh basic sign-in | CIAS_ADMINISTRATION_<AREA>_<ACCESS>_MAX_AGE |
Service accounts are exempt. Nobody changes these values in the running system. How CIAS checks them is described in Sign-in level for the administration.

Sign-in & security
Badge: build, plus the mark not yet effective. Here you record how people should sign in: magic link, passkeys, second factor required, password policy (basic, standard, strict), session length in minutes and role hierarchy.
These are settings of the identity provider, not of CIAS. CIAS knows neither passwords nor sessions. The portal stores the values so the decision is not lost. The build does not write them. What is set in the identity provider applies.
Saving
Every area is a form of its own. The bar with Discard and Save is at the top and once more at the end.
-
1Developerchanges fields of an areaOnly then do Discard and Save become usable. Discard restores the saved state.
-
2Frontendshows the findings for each field right away, computed over the state after saving
-
3Frontend→BFFsends only the fields of this area, the registration as a wholeThat way two areas never overwrite each other. Comma separated role lists are cleaned up, a cleared field is saved as empty.
-
4BFF→Hubchanges the CIAS module in the hub with your session's token
-
5Hubchecks every rule of the model. Violated → 422 with the fieldsResult: The message appears in red at the field, and the tab holding the field gets a mark.
-
6Frontendreloads the module and shows “saved”Result: The model in the hub is changed. The system gets it with the next build.
A default that the portal only displays (Keycloak as provider, RECORD, ANONYMIZE) counts as a change. That way you can save it explicitly.
Findings
Findings come in three levels. An error (red) means: the build cannot turn this into a working system. A warning (yellow) means: it builds, but surprises. A note (blue) names a precondition outside the area, usually in the identity provider or an environment. Every error also appears on the overview under “Open decisions”.
| Area | Situation | What happens on save |
|---|---|---|
| any | an error, warning or note of the portal | Saving works. A module is built up step by step |
| any | the hub rejects a value, for example a maximum age below 1 | 422, message at the field, nothing saved |
| Registration | variant, field or role twice; tenant origin missing; self-registration with “Caller's tenant”; “Named in the request” outside the platform admin; choice field without values | 422 “The registration cannot be saved like this”, the reasons appear above the form |
Who may use the portal
Every signed-in person gets into the portal. The portal itself checks no role. The hub checks reading and saving on every call against its model. If you lack the right, the portal shows the hub’s message, for example “You are not allowed to change this.”
If the hub asks for a stronger or more recent sign-in for an action, the portal opens the dialog Sign in again. After the new sign-in in a small window, it repeats the action. The flow is described in Catching up on a stronger sign-in (step-up).
Sign-in and cookies
Sign-in works as in all user interfaces via Keycloak and a BFF, see Sign in in the browser and Session in the BFF and cookies. Without a session the portal goes via /login to Keycloak and then back to the page you wanted. After signing out, /login stays put with “Signed out” and Sign in again, see Signing out.
The portal names its cookies with the prefix cias-auth. instead of next-auth.. That way the hub, the CDMS portal and the CIAS portal do not disturb each other when they run on the same machine under localhost: the browser separates cookies by host name, not by port.