के लिए मूल प्रमाणीकरण बाईपास मैंने बुनियादी प्रमाणीकरण के लिए टोमकैट कॉन्फ़िगर किया है। मैं नहीं चाहता कि किसी को भी मेरे वेब एप्लिकेशन तक पहुंच हो, लेकिन ऐप वेब सेवाओं की सेवा कर रहा है। तो मैं बुनियादी प्रमाणीकरण से एक विशिष्ट आईपी पते बायपास करना चाहते हैं (है कि आईपी प्रमाणीकरण की आवश्यकता नहीं होनी चाहिए।)टोमकैट: निर्दिष्ट आईपी पते
बिल्ला-users.xml:।
<tomcat-users>
<user username="user" password="password" roles="user"/>
</tomcat-users>
web.xml:
<security-constraint>
<web-resource-collection>
<web-resource-name>Entire Application</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>user</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>You must enter your login credentials to continue</realm-name>
</login-config>
<security-role>
<description>
The role that is required to log in to the Application
</description>
<role-name>user</role-name>
</security-role>
धन्यवाद, चेतन।
धन्यवाद palacsinit, मैं इसे जोड़ने की कोशिश करूंगा और जल्द ही परिणाम पोस्ट करूंगा। – Chetan
यह पूरी तरह से काम किया, बहुत बहुत धन्यवाद palacsint। – Chetan