Вопрос

I have a Link which requires authentication to open it The authentication page is in JSP on the Server Want to bypass that page or autocomplete it automatically so to redirect to the link directly. The Authentication page consists of 2 fields username and password and a button Login. Is there any way i can bypass this I cant use Cookies since i dont want the user to enter the details.Something which hardcode the page

Это было полезно?

Решение

You either need to write a servlet filter with all the logic yourself or use a full fledged security framework like Spring Security. For your simple use case using a framework would probably a overkill There are many tutorials on how to use servlet filter for security purpose. You can refer to this or this tutorial if you want to create your own filter

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top