Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication for Java Server Pages or Spring Basic Login #63

Open
tanto-grs opened this issue Jun 27, 2023 · 2 comments
Open

Authentication for Java Server Pages or Spring Basic Login #63

tanto-grs opened this issue Jun 27, 2023 · 2 comments
Labels
question Further information is requested

Comments

@tanto-grs
Copy link

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

@Colin-b
Copy link
Owner

Colin-b commented Jun 30, 2023

Hello @tanto-grs ,
Do you have a sample of use or a link to a documentation of this authentication mechanism?

Thanks again

@Colin-b Colin-b added the question Further information is requested label Jun 30, 2023
@tanto-grs
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants