Central Authentication Service (jasig cas)

Topics: Customizing Orchard
Sep 23, 2012 at 12:27 AM
Edited Sep 23, 2012 at 12:31 AM

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 1:35 AM

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

Coordinator
Sep 23, 2012 at 5:01 AM

http://gallery.orchardproject.net/List/Search?packageType=Modules&searchCategory=All+Categories&searchTerm=authentication&sortOrder=package-download-count&pageSize=10