• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Authentication is not working

 
Dhananjay Inamdar
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All

I am trying out the Authentication in my example.

I have added following code in my webapplication DD



I have this code in side <web-app> element, but then also when I am accessing this web-application in the browser container is not asking me to enter credentials.

Please let me know if I am doing anything wrong.

Thanks in advance!
 
Priya Viswam
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you specify <security-constraint> in the DD?
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

To work the authentication correctly, we require following 3 entries in web.xml



The <security-role> entries are required to map the roles in application with the role defined in application server.


Hope this help

Thanks
 
Dhananjay Inamdar
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

Thanks for the reply!
I will work on your suggestions and let you know the findings.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic