Forums Register Login

<login-config> in DD

+Pie Number of slices to send: Send
Does the <login-config> element of the DD needs the user to be authenticated to access any resource of the web application or only the resources constrained by a <security-constraint> in the DD?
For eg,



The above snippet from a DD, will allow only users in MANAGER role to send a POST request for the resource available at /index.jsp. But all users who try to access /index.jsp will be asked for username/password which will be sent over HTTPS (for confidentiality).

If any user tries to access any other resource in the web application, does the login-config performs authentication even then?
+Pie Number of slices to send: Send


Only when a resource is constrained authentication will be done.
+Pie Number of slices to send: Send
Thanks Simran.

Only when a resource is constrained authentication will be done.



Does that mean any unconstrained resource will be available to all the users without authentication?
Just to get my concepts right, let us consider the above example I gave. In the current scenario, any requests (be it from any role/user) to "/index.jsp" will be authenticated because "/index.jsp" is a constrained resource. Have I got it right?
+Pie Number of slices to send: Send
Hi Kanishka,

In the current scenario, any requests (be it from any role/user) to "/index.jsp" will be authenticated because "/index.jsp" is a constrained resource. Have I got it right?


Almost correct, but not exactly: only the requests that are using a POST.

If there is request accessing /index.jsp via a GET the user firing it won't be asked for authentication...

Regards,
Frits
Bring me the box labeled "thinking cap" ... and then read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 831 times.
Similar Threads
login-config not working
login-config not prompting for user id and password
form based login with LDAP
Security
Adding users and roles
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 02:56:50.