public class LoginHandler extends Object
UserPasswordAuthenticationData and
PasswordAuthenticationData.
LoginHandler supports authentication using HTTP POST (using
application/x-www-form-urlencoded), HTTP Basic Auth, NTLM or a fixed (username and) password.
login in
SubstitutionScheduleData.setData(JSONObject) to configure the login:
type (String, required)"post", "basic, "ntlm" or "fixed""post")url (String, required)data (JSON Object, required)"key": "value" fashion) sent in the HTTP POST. The value can be set to
"_login" (only for
UserPasswordAuthenticationData) or "_password" to
insert the username and password, respectively. If you specify preUrl and add "_hiddeninputs":
"" here, the contents of all <input type="hidden"> fields on the page at
preUrl are inserted into the HTTP POST data.preUrl (String, optional)input fields located on this page.checkUrl (String, optional)checkText (String, optional)checkUrl, the credential is considered invalid. If
checkUrl is not specified, the response from the login request is used (only for POST).
form-data (Boolean, optional, Default: false)multipart/form-data instead of application/x-www-form-urlencoded."basic") and NTLM ("ntlm")url (String, optional)200, the credential is considered invalid."fixed")login (String, required, only for
UserPasswordAuthenticationData)password (String, required)