How to: Configure login with HTML form authentication¶
Define authenticationType
as form
to use an HTML form login page.
{
"login-pages": [
{
"accessValidation": {
"responseOmits": "omit_this_string"
},
"usernameParameterName": "user",
"authenticationType": "form",
"url": {
"method": "*",
"name": "/ingress.php",
"protocol": "http",
"type": "explicit"
},
"passwordParameterName": "pass"
},
{
"accessValidation": {
"headerOmits": "foo: omit"
},
"usernameParameterName": "username",
"authenticationType": "form",
"url": {
"method": "*",
"name": "/ingress1.php",
"protocol": "http",
"type": "explicit"
},
"passwordParameterName": "password"
},
{
"accessValidation": {
"responseHttpStatusOmits": [
"206"
]
},
"usernameParameterName": "username",
"authenticationType": "form",
"url": {
"method": "*",
"name": "/ingress2.php",
"protocol": "http",
"type": "explicit"
},
"passwordParameterName": "password"
},
{
"accessValidation": {
"parameterContains": "qwerty"
},
"usernameParameterName": "username",
"authenticationType": "form",
"url": {
"method": "*",
"name": "/ingress3.php",
"protocol": "http",
"type": "explicit"
},
"passwordParameterName": "password"
},
{
"accessValidation": {
"responseContains": "contain_string"
},
"usernameParameterName": "username",
"authenticationType": "form",
"url": {
"method": "*",
"name": "/ingress4.php",
"protocol": "http",
"type": "explicit"
},
"passwordParameterName": "password"
},
{
"accessValidation": {
"responseHttpStatus": "201"
},
"usernameParameterName": "username",
"authenticationType": "form",
"url": {
"method": "*",
"name": "/ingress5.php",
"protocol": "http",
"type": "explicit"
},
"passwordParameterName": "password"
},
{
"accessValidation": {
"headerContains": "foo: bar"
},
"usernameParameterName": "username",
"authenticationType": "form",
"url": {
"method": "*",
"name": "/ingress6.php",
"protocol": "http",
"type": "explicit"
},
"passwordParameterName": "password"
},
{
"accessValidation": {
"cookieContains": "important"
},
"usernameParameterName": "username",
"authenticationType": "form",
"url": {
"method": "*",
"name": "/ingress7.php",
"protocol": "http",
"type": "explicit"
},
"passwordParameterName": "password"
}
]
}