Pages enfant
  • CAS en mode portlet

LOG

Lors de l'accès à uPortal et au portlet

Côté  ENT

"GET /devray/Login HTTP/1.1" 302 -
"GET /devray/render.userLayoutRootNode.uP HTTP/1.1" 302 -
"GET /devray/ HTTP/1.1" 302 -
"GET /devray/render.userLayoutRootNode.uP HTTP/1.1" 200 3301
"GET /devray/CasProxyServlet HTTP/1.1" 200 -
"GET /devray/CasProxyServlet?pgtIou=PGTIOU-276836-GPfQSSfNswkezeiqb1rgRuFXcnzdmbDXrcj&pgtId=TGT-502306-06KrQiIlkdvbfi2gsZ7wR5bNMwdbRPC3caBnNTZ113zDYhCMGG HTTP/1.1" 200 78
"GET /devray/Login?ticket=ST-1032855-mVsW5hXmHcCSTNcIJCUE HTTP/1.1" 302 -
"GET /devray/render.userLayoutRootNode.uP HTTP/1.1" 200 22793

Côté serveur CAS

"POST /login?service=http://uportal.univ-rennes1.fr/devray/Login HTTP/1.1" 302 20
"GET /serviceValidate?service=http%3A%2F%2Fuportal.univ-rennes1.fr%2Fdevray%2FLogin&ticket=ST-1032855-mVsW5hXmHcCSTNcIJCUE&pgtUrl=https://uportal.univ-rennes1.fr/devray/CasProxyServlet HTTP/1.1" 200 279
"GET /devray/Login?ticket=ST-1032855-mVsW5hXmHcCSTNcIJCUE HTTP/1.1" 302 20
"GET /proxy?pgt=TGT-502306-06KrQiIlkdvbfi2gsZ7wR5bNMwdbRPC3caBnNTZ113zDYhCMGG&targetService=http://uportal.univ-rennes1.fr/esup-lecture HTTP/1.1" 200 193
"GET /devray/render.userLayoutRootNode.uP HTTP/1.1" 200 4706
"GET /media/functions.js HTTP/1.1" 404 608

Lors de l'accès à une source protégée par CAS

Côté  ENT

"POST /devray/tag.cb5a0323971c3016.render.userLayoutRootNode.target.n95.uP?uP_portlet_action=true&org.apache.myfaces.portlet.MyFacesGenericPortlet.VIEW_ID=%2Fstylesheets%2Fhome.jsp HTTP/1.1" 302 -
"GET /esup-lecture/CasProxyServlet HTTP/1.1" 200 -
"GET /esup-lecture/CasProxyServlet?pgtIou=PGTIOU-293566-seQYVvn0nLDi94cDvJxlLEmy2RylK2bPrTP&pgtId=TGT-532053-Eqc3kCNpwsBWUSHYbubrrwuw4C6BrUXmOIcchcjpc04Bac2Upk HTTP/1.1" 200 78
"GET /sources/rss.xml?ticket=ST-1097753-E6DDtPdsrXpohXuO6g7v HTTP/1.1" 200 1116
"GET /devray/tag.cb5a0323971c3016.render.userLayoutRootNode.target.n95.uP?uP_portlet_action=false&uP_view_target=n95&org.apache.myfaces.portlet.MyFacesGenericPortlet.VIEW_ID=%2Fstylesheets%2Fhome.jsp HTTP/1.1" 200 25160

Côté serveur CAS

"GET /proxyValidate?service=http://uportal.univ-rennes1.fr/esup-lecture&ticket=ST-1097558-RQAdgAUtx73dWS0NTUr2&pgtUrl=https://uportal.univ-rennes1.fr/esup-lecture/CasProxyServlet HTTP/1.1" 200 396
"GET /proxy?pgt=TGT-532053-Eqc3kCNpwsBWUSHYbubrrwuw4C6BrUXmOIcchcjpc04Bac2Upk&targetService=http://localhost:8080/sources/rss.xml HTTP/1.1" 200 193
"GET /proxyValidate?service=http%3A%2F%2Flocalhost%3A8080%2Fsources%2Frss.xml&ticket=ST-1097753-E6DDtPdsrXpohXuO6g7v HTTP/1.1" 200 380

Configuration

Pré-requis ENT

L'utilisation de ESUP-Lecture en tant que proxy CAS necessite des adaptations de votre ENT. Ces adaptations sont décrites dans le paragraphe "Configuration en déploiement portlet" de la documentation ESUP-Commons.

les fichiers .java et .cpd cités dans cette documentation devraient être intégrés à terme dans les futures versions du package ESUP. Ils ne le sont pas encore dans la version esupdev-2.6-esup-2.0.2

properties/config.properties

Cf. la partie "properties/config.properties" dans le chapitre "Configuration" de CAS en mode servlet

web.xml esup-lecture

Une fois esup-lecture déployé en mode portlet le web.xml de l'application devrait ressembler à ceci (opération automatique via ant deploy) :

<?xml version="1.0"?>
.../...
    <context-param>
        <param-name>edu.yale.its.tp.cas.proxyUrl</param-name>
        <param-value>https://sso-cas.univ-rennes1.fr/proxy</param-value>
    </context-param>

.../...
    <servlet>
        <servlet-name>ProxyTicketReceptor</servlet-name>
        <servlet-class>edu.yale.its.tp.cas.proxy.ProxyTicketReceptor</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>ProxyTicketReceptor</servlet-name>
        <url-pattern>/CasProxyServlet</url-pattern>
    </servlet-mapping>

.../...
</web-app>





  • Aucune étiquette

Commentaire

  1. Sur conseil de Dominique Lalot, j'ajoute un petit commentaire si jamais cela pouvait vous aider à trouver la cause d'un problème de communication CAS Lecture<-->News :

    Il faut faire attention dans le web.xml de news à ajouter la partie indiquée par les notes de Raymond Bourges ici : http://www.esup-portail.org/display/PROJESUPLECTURE/CAS+en+mode+servlet#CASenmodeservlet-Web.xmlduserviceproduisantlasource
    newsPortlet est publiée en CPortletAdapter.
    Ensuite, il faut bien détailler les appels qui arrivent dans les différents logs : ssl_request.log et access.log du serveur apache où se trouve CAS + logs CAS.
    J'avais des validationFailure avec un "code=INVALID_TICKET ticket PTxxxxxxxxx not recognized" dans mon log CAS. Cela provenait d'une erreur dans mon web.xml de news qui avait une mauvaise valeur pour le paramètre "edu.yale.its.....validateUrl"