Authentication for Java Server Pages or Spring Basic Login
tanto-grs opened this issue · comments
Hello Team,
i find your library very helpfull but often i have to automate some scripts also for Java Server Pages or by Spring Basic Login.
But there have a separate way:
an action attribute like action="j_security_checkl"
the entry field for username like name="j_username" and field for password like name="j_password"
i often use the mechanize package but it is better i think to implement it into your package, because i normaly use httpx library
Best regards
Hello @tanto-grs ,
Do you have a sample of use or a link to a documentation of this authentication mechanism?
Thanks again
Hello Team,
look at this page and you will see, how the site is build:
https://docs.oracle.com/javaee/6/tutorial/doc/glxce.html
the way is the same by Java Server Pages and Spring login.
the mechanize you say the login url search for the form and set the fields j_password and j_username by code.
after this u say submit and the formular will send the information to the action like j_security_check
after the login u can call the normal URL
i hope this helps you
best regards