rest-assured/src/main/java/io/restassured/RestAssured.java
public static AuthenticationScheme form(String userName, String password) {
        return form(userName, password, null);
    }
public static AuthenticationScheme form(String userName, String password) {
        return form(userName, password, null);
    }
Use form authentication. Rest Assured will try to parse the response
login page and determine and try find the action, username and password input
field automatically.
<p>
Note that the request will be much faster if you also supply a form auth configuration.
</p>

@param userName The user name.
@param password The password.
@return The authentication scheme
@see #form(String, String, FormAuthConfig)