This page covers what you must configure to run ASEE Flow WebAdmin and its engine REST API safely in production. It builds on the Authentication and Deployment pages.
The demo ships deliberately permissive defaults for local development — a public client secret, open CORS (*), no audience validation, and (optionally) the no-auth none mode. Every one of these must be overridden before production. The checklist at the end of this page lists them.
Choose a production authentication mode
Mode
Production?
Notes
basic
✅
HTTP Basic; credentials travel in every request, so require HTTPS. Good for headless/API clients.
form
✅ Spring Boot and Run
Session-cookie login for the browser. Since 1.0.2 the REST API also accepts HTTP Basic, so programs can call it. Not with a protected Engine REST WAR on Tomcat or WildFly — use basic or oauth2 there; see Production hardening.
oauth2
✅
Standard OIDC (Okta, Entra ID, Keycloak, custom). Supports Bearer tokens for external clients when the resource server is configured (below).
keycloak
✅
OIDC plus live Keycloak directory integration (users, groups, tenants). Best for multi-tenant setups. Not in the WebAdmin WAR, which doesn’t include the Keycloak identity plugin — use oauth2 there.
none
❌ never
No authentication — installs a synthetic demo user and permits all requests. Development only.
none is for local development only. As a safeguard, the starter refuses to start in none mode unless a development Spring profile (dev, demo, test, or local) is active — so it cannot be silently left enabled in production. For any real deployment, use form, basic, oauth2 or keycloak — on Tomcat and WildFly with a protected Engine REST WAR, basic or oauth2.
Never leave the engine REST API unprotected
aseeflow.webadmin.disable-rest-security removes /engine-rest/** from WebAdmin’s security chain. Its safety depends on the deployment:
Spring Boot (in-process engine) — there is no other security layer. Setting disable-rest-security: true leaves /engine-rest/**fully open: every request returns 200, even with wrong credentials. Keep it false.
WAR — the separate Engine REST WAR has to enforce its own authentication, so disable-rest-security: true is the correct setting there (WebAdmin must not try to secure endpoints it doesn’t contain). But the Tomcat and WildFly distributions ship that WAR with its authentication filter commented out: turn it on as described in Production hardening. See also Deployment.
If you ever disable REST security in a Spring Boot deployment, you must protect /engine-rest with a separate layer (reverse-proxy auth, mTLS, or network policy).Also enable the engine’s authorization framework in production so the engine enforces per-user permissions:
camunda.bpm: authorization: enabled: true
Secure the engine REST API (OIDC modes)
For oauth2 and keycloak, Bearer-token acceptance on /engine-rest is off by default and activates only when you set an issuer:
Set audiences in production. With an empty audience list, only the issuer is validated — in a multi-tenant Keycloak realm, any token the realm signs is accepted, which is a privilege-escalation hole. List the audience your tokens actually carry.
Keycloak access tokens carry aud: "account" by default, not your client ID. To validate against the client ID instead, add an Audience mapper on the client in Keycloak (Clients → client → Client scopes → dedicated → Add mapper → Audience), then list that client ID in audiences.The REST chain always accepts the SSO session cookie; configuring the resource server makes it accept both a session and a Bearer token. There is no token-only/session-free REST surface.
Map identities correctly
Each login bridges the authenticated principal into the engine as a user ID plus resolved groups and tenants. Two misconfigurations cause silent lockouts:
User ID mismatch. The user-name-attribute claim (e.g. preferred_username, sub, email) becomes the engine user ID. If authorizations were assigned to a username but the token maps a UUID, the user logs in but resolves to zero groups and zero tenants — every query comes back empty. Make sure the claim matches the IDs the engine knows.
Missing group claim. In oauth2 mode the engine reads groups from a token claim (camunda.bpm.oauth2.identity-provider.group-name-attribute, default groups). If your provider doesn’t emit that claim, add a groups mapper on the provider. In keycloak mode the identity provider plugin queries Keycloak directly, so token group claims aren’t used.
Manage secrets
Never hard-code the OIDC client secret. Inject it via an environment variable (KEYCLOAK_CLIENT_SECRET) and keep the YAML referencing ${KEYCLOAK_CLIENT_SECRET:...}.
The demo’s fallback client secret and the demo / demo user are public and demo-only. Rotate the secret in your identity provider and create real users before production.
Never commit secrets, database passwords, or TLS keys. If one leaks into git history, rotate it immediately.
Transport security
Serve WebAdmin over HTTPS. Basic and form modes send credentials or session cookies that must not travel in clear text.
disableSSLCertificateValidation is development-only. The demo sets it true for a local self-signed Keycloak; in production remove it (or set false) and use a CA-trusted certificate on your issuer.
Behind a reverse proxy / load balancer: terminate HTTPS at the proxy and forward auth headers transparently. Register Keycloak redirect URIs against the external HTTPS URL (e.g. https://webadmin.example.com/webadmin/login/oauth2/code/keycloak), not the internal one, or OIDC login redirects break.
For session-based modes, set the session cookie to SameSite=Lax as a baseline CSRF defense:
server.servlet.session.cookie.same-site: lax
Restrict CORS
CORS only matters when a cross-origin browser client (not the bundled UI) calls the REST API — relevant in oauth2 mode. The default is open (["*"]); restrict it to your real origins:
Check that identities resolve — an authenticated user should see their groups:
curl -s -u demo:demo "http://localhost:8080/engine-rest/group?maxResults=50"# Empty result usually means an identity-mapping problem (see "Map identities correctly").
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"ASEE Flow","colors":{"primary":"#1d1d1b","light":"#e8e8e6","dark":"#1d1d1b"},"logo":{"light":"https://mintcdn.com/aseeflow/ZCa-DtOfmgFUtZwy/logo/ASEEFlowAsset%202logo.svg?fit=max\u0026auto=format\u0026n=ZCa-DtOfmgFUtZwy\u0026q=85\u0026s=4f27f54801dcb0858ec1ef607934b046","dark":"https://mintcdn.com/aseeflow/OpLRJy6TPnBLn55c/logo/aseeflow-logo-dark.svg?fit=max\u0026auto=format\u0026n=OpLRJy6TPnBLn55c\u0026q=85\u0026s=532de8ebeab30eed0009cd0a581d4ac2","href":"/"},"favicon":"https://mintcdn.com/aseeflow/ZCa-DtOfmgFUtZwy/logo/favicon.ico?fit=max\u0026auto=format\u0026n=ZCa-DtOfmgFUtZwy\u0026q=85\u0026s=f9caefb68514e68e8312efc299b039fa","appearance":{"default":"light"},"navbar":{"primary":{"type":"button","label":"Get Started","href":"/get-started"}},"footer":{"socials":{}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"aseeflow","hasAudioNarration":false,"actualSubdomain":"aseeflow","customDomains":["docs.aseeflow.org"],"gitSource":{"type":"github","owner":"aseeflow","repo":"aseeflow-mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10ee949ffae5051c416b08"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b053270310cc7c2ea501bfb","clientVersion":"0.0.4448","searchFilterCounts":[{"language":"default","tag":"Reference","count":2156},{"language":"default","tag":"REST API","count":818},{"language":"default","tag":"OpenAPI","count":800},{"language":"default","tag":"User Guide","count":552},{"language":"default","tag":"Web Applications","count":184},{"language":"default","tag":"Process Engine","count":108},{"language":"default","tag":"Process Definition","count":92},{"language":"default","tag":"Get Started","count":76},{"language":"default","tag":"BPMN 2.0","count":72},{"language":"default","tag":"Installation","count":64}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".bpmn-symbol-container.implemented svg [stroke=\"#333333\"],.bpmn-events .implemented svg [stroke=\"#333333\"]{stroke:#f47b20}.bpmn-symbol-container.implemented svg [fill=\"#333333\"],.bpmn-events .implemented svg [fill=\"#333333\"]{fill:#f47b20}.bpmn-symbols div:not([class]){display:contents}.bpmn-symbol-container{display:inline-flex;flex-direction:column;align-items:center;justify-content:flex-start;vertical-align:top;text-align:center;width:8.5rem;margin:0.75rem 0.5rem}.bpmn-symbol-container a{font-size:0.85rem}.bpmn-pool-lane{position:relative;display:inline-flex;vertical-align:top;margin:0.75rem 0.5rem}.bpmn-pool-lane>.bpmn-symbol-container{width:auto;margin:0}.bpmn-pool-lane>.bpmn-lane-overlay{position:absolute;top:0;left:24px;z-index:2}.bpmn-events td{text-align:center;vertical-align:middle}.bpmn-events td:first-child{text-align:left;white-space:nowrap}.label-warning,.label-implemented{display:inline;padding:0.2em 0.6em 0.3em;font-size:0.85em;font-weight:700;line-height:1;color:#fff;background-color:#f47b20;border-radius:0.25em;white-space:nowrap}"}]}
{"page":{"pagePath":"1.x/webadmin/security","slug":"/1.x/webadmin/security","pageMetadata":{"title":"WebAdmin Security \u0026 Hardening","sidebarTitle":"Security","description":null,"href":"/1.x/webadmin/security"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,input:`input`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`This page covers what you must configure to run ASEE Flow WebAdmin and its engine REST API safely in production. It builds on the `,_jsx(_components.a,{href:`/1.x/webadmin/authentication`,children:`Authentication`}),` and `,_jsx(_components.a,{href:`/1.x/webadmin/deployment`,children:`Deployment`}),` pages.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`The demo ships deliberately permissive defaults for local development — a public client secret, open CORS (`,_jsx(_components.code,{children:`*`}),`), no audience validation, and (optionally) the no-auth `,_jsx(_components.code,{children:`none`}),` mode. `,_jsx(_components.strong,{children:`Every one of these must be overridden before production.`}),` The checklist at the end of this page lists them.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`choose-a-production-authentication-mode`,children:`Choose a production authentication mode`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Mode`}),_jsx(_components.th,{children:`Production?`}),_jsx(_components.th,{children:`Notes`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`basic`})}),_jsx(_components.td,{children:`✅`}),_jsxs(_components.td,{children:[`HTTP Basic; credentials travel in every request, so `,_jsx(_components.strong,{children:`require HTTPS`}),`. Good for headless/API clients.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`form`})}),_jsx(_components.td,{children:`✅ Spring Boot and Run`}),_jsxs(_components.td,{children:[`Session-cookie login for the browser. Since 1.0.2 the REST API also accepts HTTP Basic, so programs can call it. Not with a protected Engine REST WAR on Tomcat or WildFly — use `,_jsx(_components.code,{children:`basic`}),` or `,_jsx(_components.code,{children:`oauth2`}),` there; see `,_jsx(_components.a,{href:`/1.x/installation/production-hardening#tomcat-and-wildfly`,children:`Production hardening`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`oauth2`})}),_jsx(_components.td,{children:`✅`}),_jsx(_components.td,{children:`Standard OIDC (Okta, Entra ID, Keycloak, custom). Supports Bearer tokens for external clients when the resource server is configured (below).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`keycloak`})}),_jsx(_components.td,{children:`✅`}),_jsxs(_components.td,{children:[`OIDC plus live Keycloak directory integration (users, groups, tenants). Best for multi-tenant setups. Not in the WebAdmin WAR, which doesn’t include the Keycloak identity plugin — use `,_jsx(_components.code,{children:`oauth2`}),` there.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`none`})}),_jsx(_components.td,{children:`❌ never`}),_jsxs(_components.td,{children:[`No authentication — installs a synthetic `,_jsx(_components.code,{children:`demo`}),` user and permits all requests. Development only.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`none`}),` is for local development only. As a safeguard, the starter refuses to start in `,_jsx(_components.code,{children:`none`}),` mode unless a development Spring profile (`,_jsx(_components.code,{children:`dev`}),`, `,_jsx(_components.code,{children:`demo`}),`, `,_jsx(_components.code,{children:`test`}),`, or `,_jsx(_components.code,{children:`local`}),`) is active — so it cannot be silently left enabled in production. For any real deployment, use `,_jsx(_components.code,{children:`form`}),`, `,_jsx(_components.code,{children:`basic`}),`, `,_jsx(_components.code,{children:`oauth2`}),` or `,_jsx(_components.code,{children:`keycloak`}),` — on Tomcat and WildFly with a protected Engine REST WAR, `,_jsx(_components.code,{children:`basic`}),` or `,_jsx(_components.code,{children:`oauth2`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`never-leave-the-engine-rest-api-unprotected`,children:`Never leave the engine REST API unprotected`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`aseeflow.webadmin.disable-rest-security`}),` removes `,_jsx(_components.code,{children:`/engine-rest/**`}),` from WebAdmin’s security chain. Its safety depends on the deployment:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Spring Boot (in-process engine)`}),` — there is no other security layer. Setting `,_jsx(_components.code,{children:`disable-rest-security: true`}),` leaves `,_jsx(_components.code,{children:`/engine-rest/**`}),` `,_jsx(_components.strong,{children:`fully open`}),`: every request returns `,_jsx(_components.code,{children:`200`}),`, even with wrong credentials. `,_jsxs(_components.strong,{children:[`Keep it `,_jsx(_components.code,{children:`false`}),`.`]})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`WAR`}),` — the separate Engine REST WAR has to enforce its own authentication, so `,_jsx(_components.code,{children:`disable-rest-security: true`}),` is the correct setting there (WebAdmin must not try to secure endpoints it doesn’t contain). But the Tomcat and WildFly distributions ship that WAR with its authentication filter commented out: turn it on as described in `,_jsx(_components.a,{href:`/1.x/installation/production-hardening#tomcat-and-wildfly`,children:`Production hardening`}),`. See also `,_jsx(_components.a,{href:`/1.x/webadmin/deployment`,children:`Deployment`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`If you ever disable REST security in a Spring Boot deployment, you must protect `,_jsx(_components.code,{children:`/engine-rest`}),` with a separate layer (reverse-proxy auth, mTLS, or network policy).`]}),`\n`,_jsx(_components.p,{children:`Also enable the engine’s authorization framework in production so the engine enforces per-user permissions:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`camunda.bpm`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` authorization`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` enabled`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`secure-the-engine-rest-api-oidc-modes`,children:`Secure the engine REST API (OIDC modes)`}),`\n`,_jsxs(_components.p,{children:[`For `,_jsx(_components.code,{children:`oauth2`}),` and `,_jsx(_components.code,{children:`keycloak`}),`, Bearer-token acceptance on `,_jsx(_components.code,{children:`/engine-rest`}),` is `,_jsx(_components.strong,{children:`off by default`}),` and activates only when you set an issuer:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`spring.security.oauth2.resourceserver.jwt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` issuer-uri`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"${keycloak.url.auth}/realms/aseeflow\"})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` audiences`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`account`})]}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Set `,_jsx(_components.code,{children:`audiences`}),` in production.`]}),` With an empty audience list, only the issuer is validated — in a multi-tenant Keycloak realm, `,_jsx(_components.em,{children:`any`}),` token the realm signs is accepted, which is a privilege-escalation hole. List the audience your tokens actually carry.`]})}),`\n`,_jsxs(_components.p,{children:[`Keycloak access tokens carry `,_jsx(_components.code,{children:`aud: \"account\"`}),` by default, not your client ID. To validate against the client ID instead, add an `,_jsx(_components.strong,{children:`Audience`}),` mapper on the client in Keycloak (Clients → `,_jsx(_components.em,{children:`client`}),` → Client scopes → `,_jsx(_components.em,{children:`dedicated`}),` → Add mapper → Audience), then list that client ID in `,_jsx(_components.code,{children:`audiences`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`The REST chain always accepts the SSO `,_jsx(_components.strong,{children:`session cookie`}),`; configuring the resource server makes it accept `,_jsx(_components.strong,{children:`both`}),` a session and a Bearer token. There is no token-only/session-free REST surface.`]}),`\n`,_jsx(Heading,{level:`2`,id:`map-identities-correctly`,children:`Map identities correctly`}),`\n`,_jsx(_components.p,{children:`Each login bridges the authenticated principal into the engine as a user ID plus resolved groups and tenants. Two misconfigurations cause silent lockouts:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`User ID mismatch.`}),` The `,_jsx(_components.code,{children:`user-name-attribute`}),` claim (e.g. `,_jsx(_components.code,{children:`preferred_username`}),`, `,_jsx(_components.code,{children:`sub`}),`, `,_jsx(_components.code,{children:`email`}),`) becomes the engine user ID. If authorizations were assigned to a username but the token maps a UUID, the user logs in but resolves to `,_jsx(_components.strong,{children:`zero groups and zero tenants`}),` — every query comes back empty. Make sure the claim matches the IDs the engine knows.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Missing group claim.`}),` In `,_jsx(_components.code,{children:`oauth2`}),` mode the engine reads groups from a token claim (`,_jsx(_components.code,{children:`camunda.bpm.oauth2.identity-provider.group-name-attribute`}),`, default `,_jsx(_components.code,{children:`groups`}),`). If your provider doesn’t emit that claim, add a groups mapper on the provider. In `,_jsx(_components.code,{children:`keycloak`}),` mode the identity provider plugin queries Keycloak directly, so token group claims aren’t used.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`manage-secrets`,children:`Manage secrets`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Never hard-code the OIDC client secret.`}),` Inject it via an environment variable (`,_jsx(_components.code,{children:`KEYCLOAK_CLIENT_SECRET`}),`) and keep the YAML referencing `,_jsx(_components.code,{children:\"${KEYCLOAK_CLIENT_SECRET:...}\"}),`.`]}),`\n`,_jsxs(_components.li,{children:[`The demo’s fallback client secret and the `,_jsx(_components.code,{children:`demo`}),` / `,_jsx(_components.code,{children:`demo`}),` user are `,_jsx(_components.strong,{children:`public and demo-only`}),`. Rotate the secret in your identity provider and create real users before production.`]}),`\n`,_jsx(_components.li,{children:`Never commit secrets, database passwords, or TLS keys. If one leaks into git history, rotate it immediately.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`transport-security`,children:`Transport security`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Serve WebAdmin over HTTPS.`}),` Basic and form modes send credentials or session cookies that must not travel in clear text.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`disableSSLCertificateValidation`}),` is development-only.`]}),` The demo sets it `,_jsx(_components.code,{children:`true`}),` for a local self-signed Keycloak; in production remove it (or set `,_jsx(_components.code,{children:`false`}),`) and use a CA-trusted certificate on your issuer.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Behind a reverse proxy / load balancer:`}),` terminate HTTPS at the proxy and forward auth headers transparently. Register Keycloak redirect URIs against the `,_jsx(_components.strong,{children:`external`}),` HTTPS URL (e.g. `,_jsx(_components.code,{children:`https://webadmin.example.com/webadmin/login/oauth2/code/keycloak`}),`), not the internal one, or OIDC login redirects break.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`For session-based modes, set the session cookie to `,_jsx(_components.code,{children:`SameSite=Lax`}),` as a baseline CSRF defense:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`server.servlet.session.cookie.same-site`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`lax`})]}),`\n`]})})}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`restrict-cors`,children:`Restrict CORS`}),`\n`,_jsxs(_components.p,{children:[`CORS only matters when a cross-origin browser client (not the bundled UI) calls the REST API — relevant in `,_jsx(_components.code,{children:`oauth2`}),` mode. The default is open (`,_jsx(_components.code,{children:`[\"*\"]`}),`); restrict it to your real origins:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`aseeflow`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` webadmin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` cors`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` allowed-origins`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`https://admin.example.com`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`production-hardening-checklist`,children:`Production hardening checklist`}),`\n`,_jsxs(_components.ul,{className:`contains-task-list`,children:[`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,_jsx(_components.code,{children:`aseeflow.webadmin.authentication`}),` is never `,_jsx(_components.code,{children:`none`}),` (and no development Spring profile is active).`]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,`Spring Boot deployment: `,_jsx(_components.code,{children:`disable-rest-security`}),` is `,_jsx(_components.code,{children:`false`}),`.`]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,`Tomcat / WildFly: the Engine REST WAR’s authentication is on, and WebAdmin runs in `,_jsx(_components.code,{children:`basic`}),` or `,_jsx(_components.code,{children:`oauth2`}),` through its proxy — see `,_jsx(_components.a,{href:`/1.x/installation/production-hardening`,children:`Production hardening`}),`.`]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,_jsx(_components.code,{children:`camunda.bpm.authorization.enabled: true`}),`.`]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,`OIDC with external clients: `,_jsx(_components.code,{children:`resourceserver.jwt.issuer-uri`}),` `,_jsx(_components.strong,{children:`and`}),` `,_jsx(_components.code,{children:`audiences`}),` are set.`]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,`OIDC client secret supplied via environment variable; demo secret and demo user removed.`]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,`HTTPS everywhere; `,_jsx(_components.code,{children:`disableSSLCertificateValidation`}),` not `,_jsx(_components.code,{children:`true`}),`; issuer certificate trusted.`]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,`Keycloak redirect URIs point to the external HTTPS URL.`]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,_jsx(_components.code,{children:`oauth2`}),` mode: `,_jsx(_components.code,{children:`cors.allowed-origins`}),` restricted to real origins (not `,_jsx(_components.code,{children:`*`}),`).`]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,`Identity mapping tested — groups and tenants resolve (not empty).`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`verify-your-configuration`,children:`Verify your configuration`}),`\n`,_jsx(_components.p,{children:`Confirm endpoints are actually protected. Unauthenticated requests must be rejected:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -o`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /dev/null`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -w`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"HTTP %{http_code}\\\\n\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"http://localhost:8080/engine-rest/process-definition/count\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Expected: 401 (or a 302 login redirect in form mode) — never 200`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Valid credentials succeed, wrong credentials fail (basic mode shown):`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -o`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /dev/null`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -w`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"%{http_code}\\\\n\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -u`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` demo:demo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"http://localhost:8080/engine-rest/process-definition/count\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # 200`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -o`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /dev/null`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -w`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"%{http_code}\\\\n\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -u`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` demo:wrong`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"http://localhost:8080/engine-rest/process-definition/count\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # 401`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`For OIDC modes, fetch a token and call REST with it:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TOKEN`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`$(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"http://localhost:9000/auth/realms/aseeflow/protocol/openid-connect/token\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` grant_type=password`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` client_id=aseeflow-identity-service`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"client_secret=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$KEYCLOAK_CLIENT_SECRET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` username=demo`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` password=demo`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` jq`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -r`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` .access_token`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -o`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /dev/null`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -w`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"HTTP %{http_code}\\\\n\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$TOKEN`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"http://localhost:8080/engine-rest/process-definition/count\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # 200`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Check that identities resolve — an authenticated user should see their groups:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -u`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` demo:demo`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"http://localhost:8080/engine-rest/group?maxResults=50\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Empty result usually means an identity-mapping problem (see \"Map identities correctly\").`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"WebAdmin Security \u0026 Hardening","sidebarTitle":"Security","description":null,"href":"/1.x/webadmin/security"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Choose a production authentication mode","slug":"choose-a-production-authentication-mode","depth":2,"children":[]},{"title":"Never leave the engine REST API unprotected","slug":"never-leave-the-engine-rest-api-unprotected","depth":2,"children":[]},{"title":"Secure the engine REST API (OIDC modes)","slug":"secure-the-engine-rest-api-oidc-modes","depth":2,"children":[]},{"title":"Map identities correctly","slug":"map-identities-correctly","depth":2,"children":[]},{"title":"Manage secrets","slug":"manage-secrets","depth":2,"children":[]},{"title":"Transport security","slug":"transport-security","depth":2,"children":[]},{"title":"Restrict CORS","slug":"restrict-cors","depth":2,"children":[]},{"title":"Production hardening checklist","slug":"production-hardening-checklist","depth":2,"children":[]},{"title":"Verify your configuration","slug":"verify-your-configuration","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/aseeflow/adc7e16456bb6574/reference/dmn/decision-table/img/map.js"],"subdomain":"aseeflow","siteName":"ASEE Flow","title":"WebAdmin Security \u0026 Hardening - ASEE Flow","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{"2.x":{"href":"/webadmin/security","matchLevel":1},"1.x":{"href":"/1.x/webadmin/security","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-11-04T17:36:10.525Z","originalFileLocation":"1.x/webadmin/security.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"ASEE Flow\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/x-icon\" sizes=\"180x180\" href=\"https://mintcdn.com/aseeflow/ZCa-DtOfmgFUtZwy/logo/favicon.ico?fit=max\u0026amp;auto=format\u0026amp;n=ZCa-DtOfmgFUtZwy\u0026amp;q=85\u0026amp;s=f9caefb68514e68e8312efc299b039fa\">\u003clink data-mint-head rel=\"icon\" type=\"image/x-icon\" sizes=\"32x32\" href=\"https://mintcdn.com/aseeflow/ZCa-DtOfmgFUtZwy/logo/favicon.ico?fit=max\u0026amp;auto=format\u0026amp;n=ZCa-DtOfmgFUtZwy\u0026amp;q=85\u0026amp;s=f9caefb68514e68e8312efc299b039fa\">\u003clink data-mint-head rel=\"icon\" type=\"image/x-icon\" sizes=\"16x16\" href=\"https://mintcdn.com/aseeflow/ZCa-DtOfmgFUtZwy/logo/favicon.ico?fit=max\u0026amp;auto=format\u0026amp;n=ZCa-DtOfmgFUtZwy\u0026amp;q=85\u0026amp;s=f9caefb68514e68e8312efc299b039fa\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintcdn.com/aseeflow/ZCa-DtOfmgFUtZwy/logo/favicon.ico?fit=max\u0026amp;auto=format\u0026amp;n=ZCa-DtOfmgFUtZwy\u0026amp;q=85\u0026amp;s=f9caefb68514e68e8312efc299b039fa\">\u003cmeta data-mint-head property=\"og:title\" content=\"WebAdmin Security \u0026amp; Hardening - ASEE Flow\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ASEE Flow\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.aseeflow.org/1.x/webadmin/security\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://aseeflow.mintlify.site/_mintlify/api/og/v2?division=WebAdmin\u0026amp;title=WebAdmin+Security+%26+Hardening\u0026amp;theme=eb766351d1c6850fee809491\u0026amp;signature=79c57a55f162b7148fcafa6511076dd4f026f6d9e11a264299682f10f8d4b91e\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"WebAdmin Security \u0026amp; Hardening - ASEE Flow\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://aseeflow.mintlify.site/_mintlify/api/og/v2?division=WebAdmin\u0026amp;title=WebAdmin+Security+%26+Hardening\u0026amp;theme=eb766351d1c6850fee809491\u0026amp;signature=79c57a55f162b7148fcafa6511076dd4f026f6d9e11a264299682f10f8d4b91e\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/aseeflow/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ASEE Flow\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1d1d1b\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.aseeflow.org/1.x/webadmin/security\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/1.x/webadmin/security.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.aseeflow.org/#organization\",\"name\":\"ASEE Flow\",\"url\":\"https://docs.aseeflow.org\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/aseeflow/ZCa-DtOfmgFUtZwy/logo/ASEEFlowAsset%202logo.svg?fit=max\u0026auto=format\u0026n=ZCa-DtOfmgFUtZwy\u0026q=85\u0026s=4f27f54801dcb0858ec1ef607934b046\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.aseeflow.org#website\",\"name\":\"ASEE Flow\",\"url\":\"https://docs.aseeflow.org\",\"publisher\":{\"@id\":\"https://docs.aseeflow.org/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.aseeflow.org/1.x/webadmin/security#webpage\",\"url\":\"https://docs.aseeflow.org/1.x/webadmin/security\",\"name\":\"WebAdmin Security \u0026 Hardening\",\"dateModified\":\"2026-11-04T17:36:10.525Z\",\"isPartOf\":{\"@id\":\"https://docs.aseeflow.org#website\"},\"breadcrumb\":{\"@id\":\"https://docs.aseeflow.org/1.x/webadmin/security#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.aseeflow.org/1.x/webadmin/security#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"WebAdmin\",\"item\":\"https://docs.aseeflow.org/1.x/webadmin\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WebAdmin Security \u0026 Hardening\",\"item\":\"https://docs.aseeflow.org/1.x/webadmin/security\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.aseeflow.org/1.x/webadmin/security#article\",\"headline\":\"WebAdmin Security \u0026 Hardening\",\"name\":\"WebAdmin Security \u0026 Hardening\",\"url\":\"https://docs.aseeflow.org/1.x/webadmin/security\",\"mainEntityOfPage\":{\"@id\":\"https://docs.aseeflow.org/1.x/webadmin/security#webpage\"},\"dateModified\":\"2026-11-04T17:36:10.525Z\",\"publisher\":{\"@id\":\"https://docs.aseeflow.org/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.aseeflow.org#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ASEE Flow\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"ASEE Flow\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/1.x/webadmin/security.md","siteName":"ASEE Flow","nav":{"global":null,"versions":[{"version":"2.x","default":true,"tag":"Latest","pages":[{"title":"2.x","href":"/webadmin/security"}]},{"version":"1.x","tabs":[{"tab":"Get Started","pages":[{"title":"Get Started","href":"/1.x/get-started"}]},{"tab":"Introduction","pages":[{"title":"Introduction","href":"/1.x/introduction"}]},{"tab":"User Guide","pages":[{"title":"User Guide","href":"/1.x/user-guide"}]},{"tab":"Reference","pages":[{"title":"Reference","href":"/1.x/reference"}]},{"tab":"Installation","pages":[{"title":"Installation","href":"/1.x/installation"}]},{"tab":"Modeler","pages":[{"title":"Modeler","href":"/1.x/modeler"}]},{"tab":"WebAdmin","groups":[{"group":"WebAdmin","root":{"title":"ASEE Flow WebAdmin","sidebarTitle":"Overview","href":"/1.x/webadmin"},"pages":[{"title":"WebAdmin Quick Start","sidebarTitle":"Quick Start","href":"/1.x/webadmin/quick-start"},{"title":"WebAdmin Configuration","sidebarTitle":"Configuration","href":"/1.x/webadmin/configuration"},{"group":"Authentication","root":{"title":"WebAdmin Authentication","sidebarTitle":"Overview","href":"/1.x/webadmin/authentication"},"pages":[{"title":"Basic Authentication","href":"/1.x/webadmin/authentication/basic"},{"title":"Form-Based Authentication","href":"/1.x/webadmin/authentication/form"},{"title":"OAuth2 Authentication","href":"/1.x/webadmin/authentication/oauth2"},{"title":"Keycloak Authentication","href":"/1.x/webadmin/authentication/keycloak"}]},{"title":"WebAdmin Deployment","sidebarTitle":"Deployment","description":null,"href":"/1.x/webadmin/deployment"},{"title":"WebAdmin Security \u0026 Hardening","sidebarTitle":"Security","href":"/1.x/webadmin/security"}]}]},{"tab":"Web Applications","pages":[{"title":"Web Applications","href":"/1.x/webapps"}]},{"tab":"Examples","pages":[{"title":"Examples","href":"/1.x/examples"}]},{"tab":"Update \u0026 Migration","pages":[{"title":"Update \u0026 Migration","href":"/1.x/update"}]},{"tab":"Security","pages":[{"title":"Security","href":"/1.x/security"}]}]}]},"basePath":"","title":"WebAdmin Security \u0026 Hardening - ASEE Flow","deploymentId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","buildId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","dynamics":[],"chunks":[]}