Skip to main content
Form-based authentication replaces the browser’s Basic dialog with a custom, branded login page. Credentials are validated against the ASEE Flow engine’s Identity Service.

Dependency

This dependency is provided in the starter, so include it explicitly.

Configuration

How it works

Unauthenticated users are redirected to the custom login page at /aseeflow-login.html. Credentials are submitted to /webadmin-login; a successful login redirects to /webadmin, and a failed one returns to /aseeflow-login.html?error. Two separate filter chains are used — one for the WebAdmin UI (form login) and one for the REST API. The login page, its logo, and the login endpoint are reachable anonymously; everything else under the base path requires authentication. REST endpoints (/engine-rest/**) are always protected and return 401 when unauthenticated; since 1.0.2 they accept the login session and HTTP Basic, so programs can call them too. Logout invalidates the session and returns to the login page. A write that the session authenticates needs the CSRF token in the X-XSRF-TOKEN header, which the UI sends by itself. Since 2.1.0 the header is the only place WebAdmin reads it from. See CSRF and cross-site requests.

When to use it

Form authentication suits production web applications that want a user-friendly, branded login, and internal portals where users expect a traditional web login. It is also easy to swap for enterprise SSO (OAuth2 or Keycloak) later. It works on every deployment, because WebAdmin serves the engine REST API for its UI itself: at /engine-rest in your Spring Boot application and ASEE Flow Run, and at /webadmin/engine-rest on the Tomcat and WildFly distributions. One login covers the UI and its data. On Tomcat and WildFly the separate Engine REST application at /engine-rest, the API for your own programs, doesn’t know WebAdmin’s session and ships without authentication: protect it as described in Production hardening.

Properties