Reputation: 1813
I created a REST service on my local system and deployed on tomcat. After that to provide Basic Authentication i add roles and users/password inside tomcat-users.xml file and updated security-config and security-role inside web.xml Now whenever I hit rest service it asks for authentication.
I deployed this rest application heroku but I don't know how to configure Basic authenication for it on Heroku as tomcat-users.xml doesn't exit.
Please help
Upvotes: 0
Views: 394
Reputation: 1813
I solved this using Filter classes provided as a part of Java servlets. Defined newly created Filter class in web.xml
Upvotes: 1