DtAuthController — REST endpoints for user authentication.
Routes: POST /auth/login — exchange a username for a session key POST /auth/logout — invalidate the current session key
When access control is disabled, the login endpoint still works and returns a session key, but carrying that key is optional for all other requests.
Login request body (JSON):
{ "username": "admin", "password": "secret" }
The "password" field is optional. If the account has no password set, it is ignored.
Login response body (JSON, HTTP 200):
{ "sessionKey": "...", "username": "admin", "permissions": ["scenario.write", ...] }
Error response body (JSON, HTTP 401):
{ "error": "Invalid credentials" }