Announcement Announcement Module
Collapse
No announcement yet.
ACEGI CAS example. Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ACEGI CAS example.

    Hi All,
    I am trying out a simple use case which demonstrates integration between CAS 3.0 and ACEGI 1.0.4.

    Here is a brief overview of the setup:
    1) CAS 3.0 has been deployed on tomcat 6.0 and configured to
    authenticate against openldap server. Authentication using CAS login
    servlet works over SSL as expected.

    2) I am trying to configure sample ACEGI application viz acegi-security-sample-contacts-cas.war to authenticate against the CAS server as per http://acegisecurity.org/docbook/acegi.html#cas. For some reason am not able to get past *step 6*. After successful authentication CAS redirects the browser to non existing service page resulting in 404 error.

    It would be helpful if anybody can let me know how this service URL viz:
    https://localhost:8443/contacts_cas/...security_check
    has to be configured for CasProcessingFilter as per *step 7.0*

    Also, am planning to buy http://www.manning.com/walls3/. I wonder whether this book talks about ACEGI and CAS integration . Are there better books or online resources out there which will help newbies come up to speed quickly ?

    Thanks in Advance

    --
    Jagadish

  • #2
    Hard to say without seeing your config files .
    Check that casProcessingFilterEntryPoint is correctly setup with the service URL; the casProcessingFilter handling requests to that URL, and that the filter is setup in web.xml.

    Comment


    • #3
      Originally posted by tvedtem View Post
      Hard to say without seeing your config files .
      Check that casProcessingFilterEntryPoint is correctly setup with the service URL; the casProcessingFilter handling requests to that URL, and that the filter is setup in web.xml.
      Hi tvedtem,
      Thanks for your reply. This is how casProcessingFilterEntryPoint bean is set inside <WEB_APPS>/acegi-security-sample-contacts-cas/WEBINF/applicationContext-acegi-security.xml

      ==================================
      <bean id="casProcessingFilterEntryPoint" class="org.acegisecurity.ui.cas.CasProcessingFilte rEntryPoint">
      <property name="loginUrl"><value>https://localhost:8443/cas/login</value></property>
      <property name="serviceProperties"><ref local="serviceProperties"/></property>
      </bean>

      <bean id="serviceProperties" class="org.acegisecurity.ui.cas.ServiceProperties" >
      <property name="service"><value>https://localhost:8443/contacts-cas/j_acegi_cas_security_check</value></property>
      <property name="sendRenew"><value>false</value></property>
      </bean>

      =====================================

      Sample application does not deploy anything under
      WEB_APPS>/contacts-cas/ , i've attached web.xml with this reply.

      --
      Thanks
      Jagadish

      Comment


      • #4
        Hi Jagdesh,

        Did you get this to work?

        I am a newbie to CAS.
        Its really urgent for me to learn how to make it work.
        Would CAS be a new application , which on successfull login will redirect to the webapplications?

        I have an application runnin on Tomcat 5.5, with security taken care by Acegi. I was trying to change the security of this application to integrate CAS
        Is that the right approach?

        Please suggest me.

        Thanks
        Vinaya

        Comment

        Working...
        X