Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-3561

Support HTTP Basic Digest mode in Web Service connector

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 8.12
    • None
    • Misc. Connectors
    • None

      Currently the the ra.xml configuration does not support "digest" based authentication. The workaround is to define it in the cxf configuration file as

      <beans xmlns="http://www.springframework.org/schema/beans"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:cxf="http://cxf.apache.org/core"
          xmlns:jaxrs="http://cxf.apache.org/jaxrs"
          xmlns:sec="http://cxf.apache.org/configuration/security"
          xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
          xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
          xsi:schemaLocation="http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd">
        
          <http-conf:conduit name="*.http-conduit">
              <http-conf:client ConnectionTimeout="120000" ReceiveTimeout="240000"/>
              <http-conf:tlsClientParameters secureSocketProtocol="TLS">
                  <!--
                  <sec:keyManagers keyPassword="changeit">
                      <sec:keyStore type="JKS" password="changeit" file="/home/rareddy/testing/vtw.pem"/>
                  </sec:keyManagers>
                          
                <sec:trustManagers>
                  <sec:keyStore type="JKS" password="changeit" file="/home/rareddy/testing/vtw.pem"/>
                </sec:trustManagers>
                -->
              </http-conf:tlsClientParameters>
      
              <http-conf:authorization>
                <sec:UserName>user</sec:UserName>
                <sec:Password>password</sec:Password>
                <sec:AuthorizationType>Digest</sec:AuthorizationType>
              </http-conf:authorization>                
          </http-conf:conduit>    
          <!--
      	<cxf:bus>
      		<cxf:features>
      			<cxf:logging />
      		</cxf:features>
      	</cxf:bus>
      	-->
      </beans>
      

            rhn-engineering-rareddy Ramesh Reddy
            rhn-engineering-rareddy Ramesh Reddy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: