0 Replies Latest reply on Sep 7, 2004 3:47 PM by ah123

    How to authenticate calls for webservice?

    ah123

      I need to put autherization on my methods that I have on the webservice.
      Could you please advice with a sample code how to configure the deploy.wsdd and JAAS (login-config. xml) files?

      I tried the following but got error class not found for JBossAuthenticationHandler. Axis 1.1 jar doesn't contain this class.

      Thanks a lot.

      <handler type="java:org.jboss.net.axis.server.JBossAuthenticationHandler">
       <parameter name="securityDomain" value="java:/jaas/other"/>
       <parameter name="allowedRoles" value="user1"/>
       <parameter name="validateUnauthenticatedCalls" value="true"/>
      </handler>
      <handler type="java:org.jboss.net.axis.server.JBossAuthorizationHandler">
       <parameter name="securityDomain" value="java:/jaas/other"/>
       <parameter name="allowedRoles" value="user1"/>
       <parameter name="validateUnauthenticatedCalls" value="true"/>
      </handler>