Hi,Branden

Thanks for the information.But do you know something about the error I got?


Or is there anyone who knows?


Thanks a lot!
Wilson






------------------ Original ------------------
From:  "Branden Visser"<mrvis...@gmail.com>;
Date:  Wed, Oct 17, 2012 10:19 PM
To:  "Wilsonlee"<281579...@qq.com>; 
Cc:  "oae-dev"<oae-dev@collab.sakaiproject.org>; 
Subject:  Re: [oae-dev] About CAS integration



Hi Wilson,

I haven't personally set Nakamura up with CAS, so please bear with me.

"path" should specify the OAE server path for which you'll have CAS
authentication. For example if you set it to /foo, CAS will only
provide authentication for users who visit URLs that are under /foo/*
on your OAE server. For OAE, I think you'll only want to set this to
"/" so all URLs are authenticated by CAS.

"gateway" specifies whether or not to send the gateway param to the
CAS server: http://www.jasig.org/cas/client-integration/gateway

"renew" specifies whether or not to send the renew param to the CAS
server: http://www.jasig.org/cas/client-integration/renew

Hope that helps,
Branden

On Wed, Oct 17, 2012 at 9:32 AM, Wilsonlee <281579...@qq.com> wrote:
> Hi,Branden.
> I wonder how to configure the CasAuthenticationHandler component?I don't
> know what to do with the "path","renew"and "gateway".
> And my login dropdown is repalced by a "Login With your CAS Account" button
> now but when I login,I got an error:
>
> Authentication Failed (401)
>
>
> The requested URL /system/sling/cas/login resulted in an error in
> org.sakaiproject.nakamura.auth.cas.CasLoginServlet.
>
> Request Progress:
>
> 0 (2012-10-17 13:15:33) TIMER_START{Request Processing}
>       0 (2012-10-17 13:15:33) COMMENT timer_end format is {<elapsed
> msec>,<timer name>} <optional message>
>       0 (2012-10-17 13:15:33) LOG Method=GET,
> PathInfo=/system/sling/cas/login
>       0 (2012-10-17 13:15:33) TIMER_START{ResourceResolution}
>       1 (2012-10-17 13:15:33) TIMER_END{1,ResourceResolution}
> URI=/system/sling/cas/login resolves to Resource=ServletResource,
> servlet=org.sakaiproject.nakamura.auth.cas.CasLoginServlet,
> path=/system/sling/cas/login
>       1 (2012-10-17 13:15:33) LOG Resource Path Info: SlingRequestPathInfo:
> path='/system/sling/cas/login', selectorString='null', extension='null',
> suffix='null'
>       1 (2012-10-17 13:15:33) TIMER_START{ServletResolution}
>       1 (2012-10-17 13:15:33) TIMER_START{resolveServlet(ServletResource,
> servlet=org.sakaiproject.nakamura.auth.cas.CasLoginServlet,
> path=/system/sling/cas/login)}
>       1 (2012-10-17 13:15:33) TIMER_END{0,resolveServlet(ServletResource,
> servlet=org.sakaiproject.nakamura.auth.cas.CasLoginServlet,
> path=/system/sling/cas/login)} Using servlet
> org.sakaiproject.nakamura.auth.cas.CasLoginServlet
>       1 (2012-10-17 13:15:33) TIMER_END{0,ServletResolution}
> URI=/system/sling/cas/login handled by
> Servlet=org.sakaiproject.nakamura.auth.cas.CasLoginServlet
>       1 (2012-10-17 13:15:33) LOG Applying Requestfilters
>       1 (2012-10-17 13:15:33) LOG Calling filter:
> org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter
>       1 (2012-10-17 13:15:33) LOG Calling filter:
> org.sakaiproject.nakamura.cluster.ClusterTrackingFilter
>       1 (2012-10-17 13:15:33) LOG Calling filter:
> org.sakaiproject.nakamura.files.migrator.FileMigratorFilter
>       1 (2012-10-17 13:15:33) LOG Calling filter:
> org.sakaiproject.nakamura.batch.RequestEventsFilter
>       1 (2012-10-17 13:15:33)
> TIMER_START{org.sakaiproject.nakamura.auth.cas.CasLoginServlet#0}
>       1 (2012-10-17 13:15:33) TIMER_START{handleError:status=401}
>       4 (2012-10-17 13:15:33) TIMER_END{3,handleError:status=401} Using
> handler
> org.apache.sling.servlets.resolver.internal.defaults.DefaultErrorHandlerServlet
>       4 (2012-10-17 13:15:33) TIMER_END{4,Request Processing} Dumping
> SlingRequestProgressTracker Entries
>
> ApacheSling/2.2 (OpenJDK 64-Bit Server VM 1.6.0_24; Linux
> 3.2.0-29-virtual amd64)
>
>
>
> Is there anyone who can help me?
>
>
>
> ------------------ Original ------------------
> From:  "Branden Visser"<mrvis...@gmail.com>;
> Date:  Wed, Oct 10, 2012 06:51 PM
> To:  "Wilsonlee"<281579...@qq.com>;
> Cc:  "oae-dev"<oae-dev@collab.sakaiproject.org>;
> Subject:  Re: [oae-dev] About CAS integration
>
> Hi Wilson,
>
> In Sakai OAE you would configure a component that provides the CAS
> functionality.
>
> If you build and deploy the project in the contrib/casauth directory,
> you should have a new component "CasAuthenticationHandler" in your
> system administration console under the "Components" tab. It should
> provide you the configuration options necessary to get CAS working.
>
> There is a bit more information in this email thread, which I used to
> jog my memory:
> http://collab.sakaiproject.org/pipermail/oae-dev/2011-September/000022.html
>
> HTH,
> Branden
>
> On Wed, Oct 10, 2012 at 5:09 AM, Wilsonlee <281579...@qq.com> wrote:
>> Hello,everyone.
>>
>> Now I'm doing a integration of CAS and I should put serveral filter in
>> sakai.In noramla J2EE project I should modify web.xml but what should I do
>> in sakai??
>>
>> Thanks a lot!
>> Wilson
>>
>> _______________________________________________
>> oae-dev mailing list
>> oae-dev@collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/oae-dev
>>
>
> _______________________________________________
> oae-dev mailing list
> oae-dev@collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/oae-dev
>



-- 
Cheers,
Branden
_______________________________________________
oae-dev mailing list
oae-dev@collab.sakaiproject.org
http://collab.sakaiproject.org/mailman/listinfo/oae-dev

Reply via email to