Skip to main content
Basic authentication uses Spring Security’s HTTP Basic mechanism with a custom provider that validates credentials against the ASEE Flow engine’s Identity Service. The default mode is form since 1.0.2.

Dependency

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

Configuration

How it works

The browser prompts for a username and password with the standard HTTP Basic dialog. Credentials are validated against the engine’s IdentityService. Both the WebAdmin UI and the REST API (/engine-rest/**) always require authentication; unauthenticated REST requests receive 401 Unauthorized. On Tomcat and WildFly this is the REST API WebAdmin serves at /webadmin/engine-rest; the separate Engine REST application at /engine-rest is yours to protect. The browser sends the saved credentials with every request to WebAdmin, also with a form that a page on another site posts. Since 2.1.0 WebAdmin refuses such cross-site writes; programs that send no Origin header are not affected. See CSRF and cross-site requests. On logout, the user is redirected to /webadmin/logoutRedirect and then back to /webadmin/, where the browser prompts for credentials again.

When to use it

Basic authentication suits development and testing, internal applications with simple needs, and API clients or automated tools.

Properties