AnsweredAssumed Answered

webscript e CAS

Question asked by plinio_4886 on Mar 14, 2011
Ciao,

ho integrato alfresco in CAS server tramite Cas20ProxyReceivingTicketValidationFilter (segue la completa configurazione del web.xml)
Riesco a richiamare webscript (il test è stato eseguito con /office/getUser) tramite alfresco/wcservice/office/getUsers.
L'autenticazione è correttamente propagata.
Ho necessità di invocare webscript (nativi e custom) tramite una chimata programmatica con org.apache.commons.httpclient.HttpClient da una servlet (che poi legge il ritorno) ma non riesco a trovare informazioni a riguardo.
Il servizio non è raggiungibile e viene presentata la login di cas.
Quale è l'apporccio corretto?
Grazie per l'aiuto.



   
  <filter>
      <filter-name>CAS Validation Filter</filter-name>
      <filter-class>org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter</filter-class>
      <init-param>
         <param-name>casServerUrlPrefix</param-name>
         <param-value>https://localhost:9443/cas-server-webapp-3.4.2/</param-value>
      </init-param>
      <init-param>
         <param-name>serverName</param-name>
         <param-value>https://localhost:8443</param-value>
      </init-param>
      <init-param>
         <param-name>proxyCallbackUrl</param-name>
         <param-value>https://localhost:8443/alfresco/proxyCallback</param-value>
      </init-param>
      <init-param>
         <param-name>proxyReceptorUrl</param-name>
         <param-value>/alfresco/proxyCallback</param-value>
      </init-param>
      <init-param>
         <param-name>acceptAnyProxy</param-name>
         <param-value>true</param-value>
      </init-param>
   </filter>
   
   <filter>
      <filter-name>CAS Authentication Filter</filter-name>
      <filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class>
      <init-param>
         <param-name>casServerLoginUrl</param-name>
         <param-value>https://localhost:9443/cas-server-webapp-3.4.2/login</param-value>
      </init-param>
      <init-param>
         <param-name>serverName</param-name>
         <param-value>https://localhost:8443</param-value>
      </init-param>
      <init-param>
         <param-name>renew</param-name>
         <param-value>false</param-value>
      </init-param>
      <init-param>
         <param-name>gateway</param-name>
         <param-value>false</param-value>
      </init-param>
   </filter>
   

   
   <filter>
      <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
      <filter-class>org.jasig.cas.client.util.HttpServletRequestWrapperFilter</filter-class>
   </filter>
   
   <filter>
      <filter-name>CAS Assertion Thread Local Filter</filter-name>
      <filter-class>org.jasig.cas.client.util.AssertionThreadLocalFilter</filter-class>
   </filter>
   
    <filter>
      <filter-name>Authentication Filter</filter-name>
      <description>dp2k filter</description>     
         <filter-class>it.dp2000.alfresco.cas.CASAuthenticationFilter</filter-class>                   
   </filter>  
  
  
      <filter-mapping>
      <filter-name>CAS Validation Filter</filter-name>
      <url-pattern>/faces/*</url-pattern>      
      
   </filter-mapping>
   
   <filter-mapping>
      <filter-name>CAS Authentication Filter</filter-name>
      <url-pattern>/faces/*</url-pattern>   
   </filter-mapping>   

   
   <filter-mapping>
      <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
      <url-pattern>/faces/*</url-pattern>
   
   </filter-mapping>
   
   <filter-mapping>
      <filter-name>CAS Assertion Thread Local Filter</filter-name>
      <url-pattern>/faces/*</url-pattern>   
   
   </filter-mapping>
   
   <filter-mapping>
      <filter-name>CAS Validation Filter</filter-name>
      <url-pattern>/proxyCallback</url-pattern>   
   </filter-mapping>
     

Mt

Outcomes