Support form-based authorization when
TestContext.setAuthorization is set, and the page has a
form with j_username and j_password input fields and a
default submit button.
I don't know how to deal with this kind of authentication properly... I could check each page for j_username and j_password presence, but it will introduce an overhead for those who don't care about form authentication.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=1235926
Originator: NO
How can I detect on the client side that the response from the server is a authentication form?
Logged In: YES
user_id=349359
Originator: YES
You recognize an authentication form by looking for input fields named j_username and j_password inside of a form with action="j_security_check".
Logged In: YES
user_id=1235926
Originator: NO
I don't know how to deal with this kind of authentication properly... I could check each page for j_username and j_password presence, but it will introduce an overhead for those who don't care about form authentication.