Community

web-service authentication problem

reply from Christy Christy in JBoss Web Services - View the full discussion

I found the solution here, on this forum :) .  To secure only endpoint but not wsdl you need to secure only POST method:

 

<security-constraint>
  <web-resource-collection>
   <web-resource-name>TestFormatsService</web-resource-name>
  
   <url-pattern>/TestFormatsService</url-pattern>
      <http-method>POST</http-method>
  </web-resource-collection>
  <auth-constraint>
   <role-name>friend</role-name>
  </auth-constraint>
</security-constraint>

<login-config>
  <auth-method>BASIC</auth-method>
</login-config>

<security-role>
  <role-name>friend</role-name>
</security-role>

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community