Central Authentication Service (jasig cas)

Topics: Customizing Orchard
Sep 22, 2012 at 11:27 PM
Edited Sep 22, 2012 at 11:31 PM

Has anyone implemented a CAS system into Orchard? Maybe written a CAS Module?

If not I will try and write one but I am a newbie when it comes to orchard.

There is a nuget package that works with MVC3 called DotNetCasClient. I have tried it in a standalone MVC app and it does work. You have to modify web.config and add:

      <forms loginUrl="https://casDomainHere/cas/login" cookieless="UseCookies" />
However this doesn't work with the orchard web.config file. In the CAS MVC example you just modif the following controller to add the authorize method attribute and the redirectToAction method:

public class AccountController : Controller { // // GET: /Account/LogOn [Authorize] public ActionResult LogOn() { return RedirectToAction("Index", "Home"); }
Can someone point me in the right direction?
Sep 23, 2012 at 12:35 AM

I think I may have this working....I post my results....

Sep 23, 2012 at 4:01 AM