문제

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