#47 form based authentication

open
nobody
1
2008-10-29
2005-04-04
Ben Eng
No

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.

Discussion

  • Julien HENRY
    Julien HENRY
    2006-11-20

    • labels: --> HtmlUnit plugin
    • priority: 5 --> 1
    • assigned_to: nobody --> henryju
     
  • Julien HENRY
    Julien HENRY
    2006-11-20

    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?

     
  • Ben Eng
    Ben Eng
    2006-11-20

    • summary: form based authorization --> form based authentication
     
  • Ben Eng
    Ben Eng
    2006-11-20

    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".

     
  • Julien HENRY
    Julien HENRY
    2006-11-20

    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.

     
  • Julien HENRY
    Julien HENRY
    2008-10-29

    • assigned_to: henryju --> nobody