How to: Configure login with AJAX or JSON request authentication

Define authenticationType as ajax-or-json-request to use an AJAX or JSON request to authenticate users in the login page.

{
    "login-pages": [
        {
            "accessValidation": {
                "responseOmits": "omit_this_string"
            },
            "usernameParameterName": "user",
            "authenticationType": "ajax-or-json-request",
            "url": {
                "method": "*",
                "name": "/ingress.php",
                "protocol": "http",
                "type": "explicit"
            },
            "passwordParameterName": "pass"
        }
    ]
}