Skip to main content

Connectors

A connector is how Liberty Next reaches a data source. Every screen, chart, dashboard, action, job step and assistant answer names the connector and the query — or the endpoint — it uses.

TypeReachesHolds
SQLA database, through a pool.Named queries, in four kinds: tables, queries, sequences, lookups.
APIA web API (REST, JSON), through an HTTP server pool or its own address.Named endpoints: method, path, headers, body, response mapping.

A connector with a menu and Show in the application list on is an app, picked in the switcher — see Apps.


At a glance​

Connectors+ ConnectorDiscardSaveReload config⌕ filter 4…APPS⛁crmsql · 3 table(s) · 3 query(ies)…⛁salessql · 2 table(s) · 4 query(ies)DATA SOURCES◍erp_apiapi · 12 endpoint(s)⛁reportingsql · 9 query(ies)[connectors.crm] · sql+ Add queriesSETTINGSpool crmTABLES3 table(s)QUERIES3 query(ies)SEQUENCES1 sequence(s)LOOKUPS2 lookup(s)⌕ filter 3…customersCustomersGETPUTPOSDEL⧉dealsOpen dealsGETPUTPOSDEL⧉activitiesNotes and callsGETPUTPOSDEL⧉Click a table: the list narrows to a column and the table opens beside it.Apps and data sourcesgrouped by their menuWhat it holdstables, queries, endpointsPage buttonssave writes and reloadsFive stage cardseach with its countA table, four statementsread · update · insert · deleteClone the tableits four statements

Liberty Next → Data → Connectors​

The left list has a filter and two groups: Apps (connectors with a menu) and Data sources (the others). Each line says what the connector holds, each kind under its own name — sql · 118 table(s) · 34 query(ies) · 19 sequence(s) · 14 lookup(s), api · 68 endpoint(s). The page header holds + Connector (a name, the type SQL or API), Discard (drops the pending changes), Save (writes connectors.toml and applies the change without a restart) and Reload config. The picked connector opens on the right, its buttons in its header — Find usages, Clone (with its dictionary scope, screens, menu, charts and dashboards), Rename (every reference rewritten), Delete (with everything that belongs to it).

Pools​

A pool is a connection of the installation, defined in Liberty Next → Administer → Pools and named by whatever uses it. What belongs to the installation — an address, an account, a password, a key — is set there once, and nowhere else. The beginning of its URL says what the pool reaches:

KindURLNamed by
A database — PostgreSQL, Oracle, MySQL, MariaDB, SQL Server, Db2, Db2 for i (IBM i, AS/400), SQLitepostgresql+asyncpg://…, oracle+oracledb://…, mssql+pymssql://…, db2+ibm_db://…, ibmi://…SQL connectors, job steps, the environment a screen runs on.
An HTTP serverhttp://… or https://…API connectors and each of their environments — see An HTTP server.
An LDAP directoryldap://… or ldaps://…The ldap_sync step of a job and the code of an application — see An LDAP directory.

The list says what each pool reaches — postgresql · host:5432 / database, http · host:8443/api/v2, ldap · host:636 / dc=example,dc=com — and its header holds + Add pool, New database… (see A new database), Discard, Save and Reload config. A field of a screen can offer the pools as a list: the dictionary rule POOL.

PoolsReload configSaveDiscard⛁ New database…+ Add pool⛁defaultpostgresql · db-host:5432 / liberty⛁erporacle · erp-db:1521 / ORCL⛁erp_apihttp · api.example.com:8443/api/v2⛁corp_directoryldap · ad.example.com:636 / dc=exa…erp_apiDeleteReload from diskRenameFind usagesTest connectionConnected in 85 ms — http HTTP 404 The server answers at this address, whatever the status.DATABASEhttp · api.example.com:8443/api/v2httpsACCOUNTsvc_libertypassword setDATABASE TYPEHTTP server (an API)⌄HOSTapi.example.comPORT8443PostgreSQLOracleMySQLMariaDBSQL ServerDb2Db2 for i (IBM i, AS/400)SQLiteLDAP directoryHTTP server (an API)✓BASE PATHapi/v2› Advanced: driver, options, URLURL composed from the fields:https://svc_liberty@api.example.com:8443/api/v2A pool per linekind · addressAn HTTP serverwhat an API connector callsAn LDAP directoryread by the ldap_sync stepThe kindten kinds, one listTest connectiona server: does it answer?The answertime and HTTP statusTwo stagesno schema, no tuningBase pathwhat follows the host

A pool, stage by stage​

The picked pool is drawn as stage cards, each saying what it holds: Database, Account, Schemas, Database links, Tuning for a database — two stages only for an HTTP server, Server and Account, and for a directory, Database and Account: they run no SQL. The Account card says password set or no password; for an HTTP server without a user — a server that takes a token — token set or no token or password. Its buttons are Test connection, Find usages, Rename, Reload from disk and Delete — and, on a saved PostgreSQL pool, Create its database… (see A pool's own database).

StageFields
DatabaseThe address, typed as an address: the Database type (PostgreSQL, Oracle, MySQL, MariaDB, SQL Server, Db2, Db2 for i (IBM i, AS/400), SQLite, LDAP directory, HTTP server (an API)), Host, Port, and the one name the type needs — Database, an Oracle Service name (a SID when the URL is written with one), a SQLite File, a directory's Base DN, a server's Base path. Picking another type moves the pool to it: its driver, its usual port; the type also chooses a query's per-dialect variant. Advanced: driver, options, URL holds the Driver, the Options (what follows the ? of the URL) and the URL composed from the fields, which stays editable (${VARIABLE} accepted). A URL the page cannot show field by field is kept exactly as written.
AccountThe User and the Password, kept out of the URL and encrypted when saved; the password field has a show / hide button. A password written in the URL is flagged, with Move it to the password field. A directory's account is the Account (bind DN, DOMAIN\user or user@domain), typed as it is; an HTTP server's is the Account, with its Signing key, Certificate and Verify SSL — see below.
Schemas, Database linksThe values of the #SCHEMA.<NAME># and #DBLINK.<NAME># tokens — see below.
TuningHow many connections the pool keeps, when it renews them, what it logs, and what each database needs (rows per round trip on Oracle, trailing spaces, empty values, query compilation on PostgreSQL) — see Tuning.

Test connection opens one connection with the pool as it is on the page — saved or not — and answers Connected in N ms with the server's version, or Could not connect with the driver's own words. A directory is bound to once with its account. An HTTP server receives one request at its address, and any HTTP status is an answer: Connected in 85 ms — http HTTP 404 The server answers at this address, whatever the status… — whether its account is accepted is checked by the Test of the API connector, which knows how it signs in. Nothing is saved and the running pools are not touched.

On Oracle the test runs SELECT 1 FROM DUAL, on Db2 and Db2 for i SELECT 1 FROM SYSIBM.SYSDUMMY1, elsewhere SELECT 1.

Tuning​

The Tuning stage of a database pool. Each field shows a one-line hint under its label; more unfolds the full description.

FieldDefaultEffect
Connections kept open5How many connections stay open, ready to be used.
Extra connections10How many more connections may be opened when the server is busy.
Test before useonChecks that a connection still answers before handing it out.
Renew after (seconds)-1A connection older than this is replaced; -1 keeps it for ever.
Log every statementoffWrites every statement to the server log. For a diagnosis only.
Let PostgreSQL compile queriesoffPostgreSQL only — see below.
Rows read at mostempty (1 000)How many rows a screen reads from this database unless it says otherwise.
Rows per round tripempty (driver default)Oracle only: how many rows are fetched at a time. Raise it to 500–1 000 for large reads.
Trim trailing spacesoffRemoves the spaces a fixed-width text column adds at the end of its values (Oracle CHAR, JD Edwards).
Fill empty valuesoffOn a write, puts a space or a zero where a value is left empty, for columns that refuse empty (Oracle NOT NULL text columns).
Log statements and valuesoffWrites each statement with its values to the server log. For a diagnosis only.
Query compilation on PostgreSQL​

PostgreSQL compiles (JIT) a query it estimates to be heavy before running it, at every run. On the short queries of screens, searches and dashboards the estimate is often wrong, and the compilation then costs far more than the query itself — measured on a search: 145 ms of compilation for 4 ms of work, and seconds on a server with one processor. Each PostgreSQL pool therefore turns JIT off for its own sessions; the database's other users keep the server's setting. The collections and the Nomaflow jobs run on the same pools, and their heavy reads are as fast or faster without it.

Switch Let PostgreSQL compile queries on to leave the database's own setting to the pool's sessions. The field has no effect on the other databases.

SQL Server, Db2 and IBM i​

A pool reaches these databases like any other: the screens, the queries, the jobs and the applications read it the same way. Their drivers do not ship with the base package:

Database typeDriver (URL)Usual portDatabase fieldDriver to install
SQL Servermssql+pymssql — mssql+aioodbc is also offered under Advanced1433Databaseliberty-next[mssql] — nothing else to install on the server. mssql+aioodbc needs Microsoft's ODBC driver on the server.
Db2 (Linux, UNIX, Windows)db2+ibm_db — db2+pyodbc is also offered50000Databaseliberty-next[db2]. IBM publishes the driver for x86-64 Linux, macOS and Windows, not for arm64 Linux.
Db2 for i (IBM i, AS/400)ibmi (through ODBC)noneDatabase — the system's own nameliberty-next[ibmi], plus unixODBC and IBM's IBM i Access ODBC Driver (IBM's download, under its own licence) on the server.

The Docker image carries the SQL Server driver, and the Db2 driver on amd64 only; the IBM i driver is not in the image. On a Python install, add the extras that match the pools. When the driver of a pool is missing, the pool's error and the result of Test connection name the extra to install — no driver for a 'db2+ibm_db' database is installed — install it with: pip install 'liberty-next[db2]'.

An HTTP server​

A pool whose URL starts with http:// or https:// is the server an API connector calls — https://svc_liberty@api.example.com:8443/api/v2. The API connector names it in its Server field, and so can each of its environments: the address, the account and the secrets are then the pool's, and the connector keeps how it authenticates and its endpoints — see The server of an API connector.

StageFieldEffect
ServerHost, Port, Base pathThe address the endpoints' paths are added to. The scheme (https or http) is the Driver under Advanced.
AccountAccountThe account the connector signs in with. Blank when the server takes a token: the Password field then holds the token.
AccountPasswordThe account's password — or the token. Encrypted when saved; ${VARIABLE} accepted.
AccountSigning keyFor a connector that makes each call as the signed-in user, or that names him in an acting-user header: the key that signs the tokens — the PEM text, the path of a PEM file on the server, or the secret shared with the server. Encrypted when saved, like the password. Whoever holds it can act as any user of that server: protect it like the master key.
AccountCertificateOptional: the certificate of the signing key (the PEM text, or the path of the .cer / .pem file given to the server); its fingerprint is then written in the token's header.
AccountCheck the server's certificateChecks the server's TLS certificate. Turn it off only for a test server with a self-signed certificate.

An HTTP server runs no SQL: a query, a screen or a copy that names it is refused, with the reason.

An LDAP directory​

A pool whose URL starts with ldap:// or ldaps:// (over TLS) is a directory — an Active Directory, an OpenLDAP. It is created like a database, with the kind LDAP directory: Host, Port (636 for ldaps, 389 for ldap), Base DN — where the searches start, optional —, the Account (bind DN, DOMAIN\user or user@domain) typed as it is (cn=liberty,ou=services,dc=example,dc=com, EXAMPLE\svc_liberty, svc_liberty@example.com), and the Password, kept like any pool's (ENC: or ${VARIABLE}). Test connection binds once with the account and lets go.

Whatever reads a directory names the pool instead of carrying a server and an account of its own: the Directory pool of a job's ldap_sync step, and an application's code through connectors.pools.directory(name). A directory runs no SQL, and a database pool is not a directory: either mistake is refused by name. connectors.pools.where(name) tells where any pool points — host, port, database or base — without its account, which is what a report prints of a system.

The directory client is an optional part of the server: when it is missing, the test says so and names the ldap extra to install.

A new database​

New database…, in the header of Liberty Next → Administer → Pools, creates on a PostgreSQL server the database of an application, the account that owns it and, if asked, a read-only account — then adds the pool that reaches it to the page.

New databaseAn account and the database it owns, created on the PostgreSQL server of an admin pool (an accountallowed to create roles and databases). The pool that reaches it is then added here, to save and test.Created through the pooldefault ▾Database (and pool) namecrmAccount (empty: the database name)crmPasswordHq7tVm2KxR9bWcN4pZ3eAlso a read-only account (reads every table, those created later too)Read-only accountcrm_readCreateCancelAdmin poolPostgreSQL, CREATEROLE + CREATEDBDatabase = pool namelower case, digits, _Owner accountempty: the database nameGenerated password20 characters, editableRead-only accountempty: <database>_readCreatesteps listed, pool added to the page
FieldEffect
Created through the poolThe saved PostgreSQL pool whose server receives the database — default when there is one. Its account must be allowed to create roles and databases (CREATEROLE and CREATEDB), as the default pool of an installation made by liberty-admin init-db is. Without any PostgreSQL pool, the dialog says to add the server first.
Database (and pool) nameThe new database, and the name of the pool added for it: lower-case letters, digits and _, starting with a letter, 63 characters at most. A name already taken by a pool is refused, with the way to its database: pick it and use “Create its database…”.
Account (empty: the database name)The account that owns the database. Its tables go in public, as the applications' do.
PasswordFilled with a 20-character password drawn by the browser; it can be replaced.
Also a read-only account (reads every table, those created later too)Adds a second account, Read-only account — <database>_read when left empty — with its own Password. It may connect to the database and read every table of public, including the tables created later by the owner: for a reporting tool, or a person who must not change anything. It must be another account than the owner.

Create says what was done, step by step — account crm: created, database crm: created, owned by crm, account crm_read: reads every table of crm, those created later too — and adds the pool crm to the list, the owner account in its Account stage and the password in its encrypted field. Save, then Test connection, as for any pool.

Nothing is dropped: an account that exists already gets the password given, and a database that exists is kept as it is. The database is then ready for an application's install, for a table declared in the configuration, or for a backup restored with pg_restore.

A pool's own database​

A pool may exist before its database: written by an application's install, or by hand with the address of a database still to create. Create its database…, among the buttons of a saved PostgreSQL pool, creates on the server the database and the account its URL names, with the password the pool holds — The database crm and its account crm, as the pool names them, with its password — created on the server of an admin pool (the same server). What exists is kept.

FieldEffect
Created through the poolAnother saved PostgreSQL pool on the same server, whose account may create roles and databases — default when there is one.
Also a read-only account (reads every table, those created later too)As for a new database: a Read-only account (<database>_read when left empty) with its own Password.

Create lists what was done — Database crm: done. — and leaves the pool as it is. While the pool holds unsaved changes the button stays inactive — Save the pool first: its saved settings are used.

Tables and queries beside their list​

A SQL connector's sections are stage cards with their counts: Settings (its pool), Tables, Queries, Sequences, Lookups. Picking one lists its content; + Add queries (Tables), + Add query, + Add sequence or + Add lookup is in the connector's header.

Opening a table keeps the list beside it: the list narrows to a column — each table's four statements as dots — and the table opens next to it, so going from one table to the next is one click; the same for a query, a sequence, a lookup. The connector's sections and the table's stages then fold to one line each, so the statement starts high on the page. A table is drawn as its stages — General, Structure, then Read, Update, Insert, Delete — each statement stage saying whether the statement is set or not set, and in orange not writable: refused at run time when a write statement is there but not allowed. Its actions are a row of icons beside Open visual builder (find usages, rename, change type, move, clone, delete). The Build a SELECT / INSERT / UPDATE / DELETE dialogs write the statement from the table's columns, with a preview. See Queries — overview.

The Structure stage holds the table's columns and indexes when the table belongs to the application: the framework then creates it in the database and keeps it up to date — a missing column or index added, a text or a number widened —, on demand and at each liberty-admin migrate. The stage card says N column(s) · created and widened by the framework, owned by nomasx1 for a table an application's own models create, or not the application's for a table the framework never touches (a JD Edwards table). From the same stage, a spreadsheet or a CSV file can be loaded into the table. See A table declared in the configuration.

SQL connector​

A SQL connector has five stage cards: Settings, Tables, Queries, Sequences, Lookups. The four query sections are described on Queries — overview.

Settings​

The Settings card of a SQL connector holds its connection settings.

FieldEffect
DatabaseThe pool the queries run on — a dropdown of the pools defined in Liberty Next → Administer → Pools. The connector takes the pool's address, credentials and database type.
Other databasesThe other databases a user may switch to — the same screens on another environment. See A connector on several databases.
Show in the application listShows the connector as an application in the switcher at the top of the sidebar — together with a menu, see Make a connector an app.
Home pageThe menu entry opened when the application is picked.
Home page per roleA landing menu entry per role: a user lands on the entry of the first of their roles listed here, otherwise on Home page.
Serves the applicationsThe licensed applications the connector belongs to: it is loaded when the licence covers one of them. Empty: it stands alone. See What a key covers.
Rows read at mostDefault row limit of a read; otherwise the pool's, then 1 000. A screen's or a request's limit wins.
Optional schema namesSchema names a database need not define: such a name then takes the value of another one (UDO_SEC = SY). See Optional schema names.
Column prefix lengthLength of the table prefix in column names (JD Edwards: 2, so ABCO, MCCO and SDCO all carry the dictionary item CO). Used by a role's data scope. 0: column names are the items.

Query editor​

+ Add query, or a click on a query, opens the query editor beside the list. Its header holds back, the query's name and its buttons — Find usages, Rename, Change type, Move, Clone, Delete (described on Create a custom query). The query is drawn as three stage cards:

StageFields
What it isLabel and Description — shown in the pickers, and read by the AI assistant to choose its queries. The name used in the URL (/api/sql/billing/<name>) and the permission (sql:billing:<name>) is the one in the header.
StatementStatement — the SQL, with :name parameters and {{TOKEN}} server values; one text, or one variant per database (see Per-dialect SQL). Changes data — off: only a SELECT is accepted; on: INSERT / UPDATE / DELETE / CALL / MERGE.
ParametersThe declared parameters, one line each: Name, Label, Default value, Help, Example, Allowed values, Required — see Parameter binding.

The SQL editor highlights the syntax and completes table and column names from the pool. Above it, Token inserts a server value ({{LOGIN}}, {{SYSDATE}}…) or one of the pool's schemas, Wizard opens the SELECT builder, and Run tries a read statement on the connector's pool.

A SQL query can carry two placeholder tokens that let the same text run against any pool — local or remote — without maintaining a per-environment variant of the query:

TokenResolves toWhere it's configured
#SCHEMA.<NAME>#The pool's mapping for schema <NAME> (e.g. SY920.). Empty when the pool has no entry — the token drops out and the table name is written bare.The pool's Schemas stage.
#DBLINK.<NAME>#The pool's DB-link suffix for schema <NAME> (e.g. @ORCLPROD). Appended after the table name, so a #SCHEMA.SY#F0092#DBLINK.SY# resolves to SY920.F0092@ORCLPROD. Empty when no entry — nothing is appended, and the query stays local.The pool's Database links stage (SY = @ORCLPROD).

The two are position-independent: #SCHEMA.…# prefixes the table, #DBLINK.…# suffixes it. The same query works locally (both mappings empty), against a remote schema without a link (schema mapped, dblink empty) or via a database link (both mapped) — the pool decides which shape to emit.

A non-empty DB-link value must be a bare @link reference (starts with @, letters, digits, _, $, # and . only). Anything else makes the query fail when it runs — a guard against a DB-link value that would try to smuggle SQL into the statement.

Optional schema names​

Some tables sit in their usual library on most installations and elsewhere on a few. Rather than a second query, the connector declares the schema name as optional, in Optional schema names on its Settings card: one line per name, with the name whose value it takes when the database does not define it — UDO_SEC = SY.

#SCHEMA.UDO_SEC# is then the pool's UDO_SEC when the pool sets one, and its SY otherwise. The database links follow the same rule: #DBLINK.UDO_SEC# is the pool's UDO_SEC link, else its SY link. The queries name the table once; only the installation that differs adds a line to its pool's Schemas (and Database links, if needed).

Oracle thick mode​

The Oracle driver runs in thin mode by default: no Oracle client needed, every call on the server's event loop. Two cases need the thick mode, which goes through the Oracle Instant Client:

  • Native Network Encryption (NNE) required by the database — thin mode fails with DPY-3001;
  • reading a LOB across a database link — thin mode fails with ORA-22992 / ORA-03149.

Tick Oracle thick mode in Liberty Next → Administer → App (section App) and restart the server: every Oracle pool then runs in thick mode — the setting applies to the whole server, not to one pool. PostgreSQL pools are not affected. The Instant Client is included in the Docker image (amd64 and arm64); a Python install needs it on the host.


A connector on several databases​

One SQL connector can run on several databases — one per environment: production, test, development, or two JD Edwards installations — without cloning the connector or duplicating its screens. Database is its main database; Other databases lists the others (both are dropdowns of the configured pools, on the connector's Settings card). The same named queries and the same screens then run on any of them.

The environment picked under the application list​

When the screens of the current application use a connector on several databases — or an API connector with one server per environment (see One server per environment) —, a Pool list appears in the sidebar, under the application list:

  • its first choice is the main database, under its name (jde_prod), listed once; the other databases follow, by name;
  • when the application's connectors on several databases do not share the same main database, the first choice reads Default: each connector then reads its own main database;
  • the choice is kept per application in the browser; picking the main database is the same as picking nothing;
  • it applies only to the connectors that have that database — the application's other connectors keep their main database rather than fail.

Picking another environment draws the application's open tabs again — its screens, its dashboards and its own pages —, so that each reads from the environment picked instead of keeping what it loaded from the previous one. When one of those tabs holds unsaved changes, the switch asks first, as the language switch does.

What follows the environment picked​

WhatOn the environment picked
ScreensTheir queries, lists, record forms and saves run on that database.
API connectors with one server per environmentThe call goes to that environment's server — see One server per environment.
Application pagesThe functions a page calls are handed each such connector bound to the database picked; a database that is not one of the connector's leaves it on its main database. An answer kept for a page is kept per environment, and an open page starts again when another environment is picked — see Pages an application ships.
Data ExplorerThe analyses read that database. See Data Explorer.
ReportsA report run from the Reports page reads that database.
A query's :LIBERTY_POOLSet by the server to the environment picked — blank for the main database. See Parameter binding.

In jobs​

A step that names its own Environment works on it (for a SQL copy, one per side). Otherwise the steps — function, report, API, SQL query and both sides of a SQL copy — work on the schedule's or the job's Environment, else on the pool picked on the page the job was started from, when their connector runs on it; a connector that does not, or a scheduled run with none of these, reads the main database. A SQL copy may name its schemas as the pool does (#SCHEMA.CTL#), so that the same step follows each environment's own schema names. See Steps.

What can be reached​

The reachable set is the Database plus the Other databases; a request or a job can never reach a pool outside it, and only pool names reach the list — never a URL or credentials. A connector with no other database runs on its main database only. A call to the API names the environment in the X-Liberty-Pool header — see REST API → Conventions.

An API connector called from those screens — AIS, for JD Edwards — follows the same environments: see One server per environment.


API connector​

An API connector calls a web API. Its server — address, account, secrets, TLS check — is best an HTTP server pool, named in Server; the connector then keeps how it authenticates and its endpoints. It is drawn as six stage cards, each saying what it holds or still lacks — the server pool it names (→ erp_api) or the server's host, the kind of authentication and what it still lacks, the environments, the number of endpoints and how many write, the webhooks, the test:

[connectors.erp_api] · apiDeleteRenameCloneFind usagesCONNECTION→ erp_apiAUTHENTICATIONUser and passwordENVIRONMENTSone server for allENDPOINTS12 endpoint(s)3 that writeWEBHOOKSnot available yetTESTtry an endpointCONNECTIONSERVERerp_apiapi.example.com:8443/api/v2⌄The address, the account, the password or token and the TLS check are read from this pool.TIMEOUT (MS)30000DEFAULT HEADERSHEADERSAccept: application/jsonWithout a server: Base URL and SSL Verify are written here instead.AUTH TYPEThe account and its secrets are those of the pool erp_api:only how the connector authenticates is set here.METHODBasic (username + password)⌄Without a server, the method's fields:USERNAMEsvc_libertyPASSWORD••••••••👁Each user as himself: Signing key, Certificate— the pool's when a server is named.Card summaryserver named, or what is missingServeran HTTP server poolBase URL, SSL Verifyonly without a serverSix stage cardswhat each part holds or lacksHow it authenticatesstays on the connectorSecretsshow / hide button

The stages of the connector​

StageContent
ConnectionSection App: Show in switcher, Home page, Home page per role — a different home page for the users of a role: the role and the menu entry are both picked, one line per role —, and Serves the applications — the licensed applications the connector belongs to, picked among the other connectors: it is loaded when the licence covers one of them (see What a key covers). Section Connection: Server — an HTTP server pool, or Set on this connector; with a pool, the address, the account, the password or token and the TLS check are read from it. Without one, Base URL (https://api.example.com, ${VARIABLE} accepted) and SSL Verify (true, false, or a variable such as ${API_VERIFY_SSL:-true}, kept as written) are set here. Timeout (ms) in both cases. Section Default headers: Headers, Key:Value pairs separated by semicolons, sent with every request.
AuthenticationMethod: None, Basic (username and password), Bearer (static token), API Key (header name and key), OAuth2 / JWT (token endpoint path, body template and Content-Type, token request headers, token field, token lifetime), Each user as himself (a signed token) — each call made as the signed-in user, see Each call as the signed-in user. When the connector names a server, only the method and its own settings are set here: the account, the password or token, the signing key and its certificate are the pool's. Otherwise the method's fields are here; the secrets are encrypted when saved, and the password, the token and the signing key have a show / hide button. The card names the method and what it still lacks: no user yet, no token, no token address, no token address, no signing key yet. Section Acting user: the header that names the signed-in user beside the connector's own sign-in — see The signed-in user named to the server.
EnvironmentsOne server per environment, for a connector used with several JDE environments — see One server per environment.
EndpointsThe named endpoints — see API endpoints.
WebhooksNot available yet: external systems cannot push events into Liberty Next.
TestPick an Endpoint, fill its Parameters, Run: the Result comes back, nothing is saved. On a connector without endpoints, Test connection checks the address and the authentication.

An endpoint is one named call — What it is (name, label, description, Changes data, group), Inputs (its parameters), The call (method, URL path, headers, body, query parameters — or a function or a service that answers instead) and The answer (rows, columns, error and warning fields, response field and mappings). Each stage is described on API endpoints.

The server of an API connector​

The Server field names an HTTP server pool: what belongs to the installation — the address, the account, the password or token, the signing key and its certificate, the TLS check — is then in one place, under Liberty Next → Administer → Pools, and a credential is changed there once for every connector that uses it. What stays on the connector is how it authenticates (the method and its settings: token endpoint, user attribute, signature…) and its endpoints.

A connector an application ships holds none of the installation's values: an upgrade refreshes it whatever the address, and keeps the Server the installation named. A connector that names no server keeps its own Base URL and credential fields.

A server pool that is missing, or that has no address yet, does not stop the server from starting: each call made through the connector fails and says what to set — the connector names the server pool 'erp_api': there is no such pool — create it under Liberty → Pools (kind HTTP server). The connector's Test runs with the pool's address and account: it checks that the account is accepted, where the pool's own Test connection only checks that the server answers.

[pools.erp_api]
url = "https://svc_liberty@api.example.com:8443/api/v2"
password = "ENC:…"

[connectors.erp_api]
type = "api"
server = "erp_api" # address, account, secrets: the pool's
auth_type = "basic" # how it authenticates: the connector's

Endpoints are called by screens (an endpoint with rows is read like a query), screen actions (call_api), services, menu entries (type endpoint), notification rules (action channel), plugins (connectors.api(…).call(…)), tests and — when allowed — the AI assistant. A Nomaflow http step calls a URL directly, without a connector.

Each call as the signed-in user​

With the method Each user as himself (a signed token), the connector no longer calls the server under one service account: each call is made as the user signed in to Liberty. Liberty signs a short-lived JSON Web Token that names the user, and sends it as Authorization: Bearer; the server trusts the certificate of the connector's key. No password of the user is kept anywhere. The method is made for JD Edwards AIS — its HTML server's external JWT trust — and works with any server that accepts a signed token.

[connectors.erp_api] · apiCONNECTIONAUTHENTICATIONENVIRONMENTSENDPOINTSWEBHOOKSTESTAUTH TYPEMETHODEach user as himself (a signed token) ⌄THE USER OF EACH CALLEach call is made as the signed-in user: Liberty signs a short-lived tokenthat names him on the server, which trusts the certificate of this key. Nopassword of the user is kept.SIGNING KEY••••••••••••••••••••CERTIFICATE (OPTIONAL)/etc/liberty/liberty-jde.cerUSER ATTRIBUTEjde_userNAME SENTIn upper case (JD Edwards) ⌄WHEN NO USER CAN BE NAMEDRefuse the call ⌄A job or a schedule has no user; a user may have no name on the server.THE TOKENFIELD THAT CARRIES THE USERsubSIGNATURERS256 ⌄ISSUER (ISS)AUDIENCE (AUD)VALID FOR (SECONDS)300Each user as himselfeach call as the signed-in userSigning keyPEM file or text, ENC: acceptedUser attributehis name on the serverName sentupper case for JD EdwardsNo user to namerefuse, or the service accountThe tokenclaim, RS256/384/512, iss, audShort-lived300 s by default, 30 to 3600
FieldDefaultEffect
Signing key—The private key: the path of a PEM file on the Liberty server, or the PEM text (an ENC: value is accepted). Whoever holds it can act as any user of the server: protect it like the master key. When the connector names a server, it is a field of the pool and is not shown here.
Certificate (optional)—The certificate given to the server (its file, or its PEM text). Its fingerprint is written in the token (x5t), which some servers pick the certificate by. A field of the pool too when the connector names a server.
User attributejde_userThe attribute of the Liberty user that holds his name on the server — set by an administrator in the user's data-scope attributes, never by the user. Blank: the Liberty user name itself.
Name sentIn upper case (JD Edwards)Or As written.
When no user can be namedRefuse the callOr Use the service account below: the Credentials section then appears, and the call is made with that username and password. A job or a schedule has no user; a user may have no attribute.
Field that carries the usersubThe claim of the token that holds the name.
SignatureRS256RS256, RS384 or RS512.
Issuer (iss), Audience (aud)blankWritten in the token when the server checks them.
Valid for (seconds)300From 30 to 3600. A token is reused for the same user until shortly before it expires, then a new one is signed.

A call with nobody to name — and the fallback left on Refuse the call — is not sent: it fails with a message that says why (nobody signed in, or the account has no such attribute) and asks to see an administrator. The choice is made per connector: a connector left on another method keeps its service account.

The signed-in user named to the server​

Some servers take a service account and are told, call by call, for whom they work — NomaUBL reads its user from X-Acting-User: his inbox, his rights. The Acting user section of the Authentication card sets that: the connector keeps signing in with its own account and method, and adds a header holding a short-lived signed token that names the user signed in to Liberty.

FieldDefaultEffect
HeaderblankThe header the server reads the user from (NomaUBL: X-Acting-User). Blank: never sent, and the other fields are hidden.
Which callsThe endpoints marked onlyOr Every call: every endpoint names the signed-in user, and the server applies his rights everywhere — an endpoint may still say no (see below).
Signing key—The secret shared with the server (HS…) or a private key in PEM (RS…). Encrypted when saved. When the connector names a server pool, it is the pool's Signing key and is not shown here.
SignatureHS256HS256, HS384, HS512, RS256, RS384 or RS512 — as the server checks it.
User attributeblankThe user attribute holding his name on the server. Blank: his Liberty user name.
Name sentAs writtenOr In upper case (JD Edwards).
Field that carries the usersubThe claim of the token that holds the name.
Valid for (seconds)300From 30 to 3600.

With The endpoints marked only, the header goes only with the endpoints marked for it: in an endpoint's The call stage, Name the signed-in user to the server (the connector's acting-user header) — see API endpoints. With Every call, the box is ticked on every endpoint and reads Name the signed-in user to the server (the connector names him on every call: untick to keep this one the connector's own): an endpoint unticked keeps the connector's own account — an account kept in step by a job, for instance.

A call made for nobody — a scheduled job, a check the server makes by itself — carries no header, and the connector's own account acts; so does a call made before a signing key is set up. A job started by hand (Run now) acts as the person who started it; a scheduled one, as the connector's own account.

When a user's name on that server differs from his Liberty user name, an administrator sets it in Administer → Access → Users, in the user's Accounts on the applications — one field per application whose connector names a User attribute, which the field fills; empty, his Liberty user name is sent. See Users.

One server per environment​

When the screens run on a multi-pool connector — several JD Edwards environments — each environment usually has its own AIS server. The Environments card gives the API connector one server per environment; the endpoints stay defined once.

FieldEffect
Environment (pool)The environment (pool) of the connector's own server — its Server, or its Base URL and credentials. Required as soon as there is another environment.
Other environmentsOne entry per other pool: its Server — an HTTP server pool, whose address, account, secrets and TLS check are then read —, or, set on the connector, Base URL, Username, Password, Token, SSL Verify. A blank field takes the connector's value. Passwords and tokens are encrypted when saved. The line of an environment shows → pool or its base URL.

Nobody chooses the server. A call follows the environment the screen runs on — the Pool picked under the application list — and the environment of a job or of its step. That covers screen actions (call_api), the applications' functions and pages, /api/http and the AI assistant.

With no pool picked, the SQL connectors read their main database, and the API connector calls the server of that same database — not its own when its Environment (pool) names another one. When the two differ, the server log says so at start. (When the SQL connectors of its environments have different main databases, the connector's own server is called.)

A call made for one of the connector's environments with no server is refused ("no target for pool …"); it is never sent to the connector's own server, which is another environment — often production. The environments are the connector's pool plus every pool of the SQL connectors running on it, so a JDE environment added on the SQL side and forgotten here is refused too. The card lists those environments without a server, and so does Settings → Integrity.

[connectors.ais_connection]
server = "jde_ais" # the HTTP server pool of production
pool = "jdedwards" # the environment of that server

[connectors.ais_connection.targets.jdedwards_dev]
server = "jde_ais_dev" # the HTTP server pool of this environment

An application that reads an API alone — no SQL connector — offers the same choice: the connector's environments are its own pool and the pools of its other environments, and the Pool list under the application list offers them as it offers a SQL connector's databases. The calls follow the pick, through the X-Liberty-Pool header.

To name the environment before a sensitive call, use #POOL# in a confirm message: Reset the password of {INPUT.user} on #POOL#?. An upgrade of the licensed apps keeps an install's server, pool and targets.


Schema discovery and column hints​

A query has no declared column list: the columns are those the database returns when it runs. How a column looks on a screen is decided, in this order, by:

  1. the column settings of the screen (Columns tab) — label, format, width, rule, conditions;
  2. the dictionary entry whose key is the column's name, or the one named in the column's dd field — label per language, format, rule (Boolean, enum, lookup…);
  3. otherwise the column's name and the default display for its type.

A column does not need a setting of its own: a dictionary entry with its name is enough. See Dictionary and Screens → Columns.


Permissions​

Each query and each endpoint has its own permission:

PermissionAllows
sql:<connector>:<query>Running the query — read or write alike.
api:<connector>:<endpoint>Calling the endpoint.

They are granted through roles: allowing a menu entry grants what it opens, and Beyond the menus grants a query, an endpoint or a whole connector — patterns such as sql:billing:report_* are accepted. See Roles & permissions.


Tips​

  • Name queries after the entity — invoices_get, invoices_by_status_get — the lists read themselves.
  • Describe the queries the AI assistant should use: label and description (stage What it is).
  • Prefer the dictionary to per-screen labels: one entry serves every screen.
  • Put a server's address and account in a pool, not on the API connector: one place to change a password, and a connector an upgrade can refresh.
  • Keep secrets out of the files with ${VARIABLE} references when a secrets manager is used — see Encryption & secrets.

Under the hood​

Connectors and pools are stored in connectors.toml, in the apps configuration folder. The Liberty Next pages are the normal way to edit them; the same configuration is reachable through the REST API under /admin/config/connectors — see REST API.


What's next​