controllers.modules.cas
Class SecureCAS

java.lang.Object
  extended by play.mvc.Controller
      extended by controllers.modules.cas.SecureCAS
All Implemented Interfaces:
play.classloading.enhancers.ControllersEnhancer.ControllerSupport, play.classloading.enhancers.LocalvariablesNamesEnhancer.LocalVariablesSupport

public class SecureCAS
extends play.mvc.Controller

This class is a part of the play module secure-cas. It add the ability to check if the user have access to the request. If the user is note logged, it redirect the user to the CAS login page and authenticate it.


Field Summary
 
Fields inherited from class play.mvc.Controller
_currentReverse, flash, params, renderArgs, request, response, routeArgs, session, validation
 
Constructor Summary
SecureCAS()
           
 
Method Summary
static void authenticate()
          Action for the CAS return.
static void fail()
          Action when the user authentification or checking rights fails.
static void filter()
          Method that do CAS Filter and check rights.
static void login()
          Action for the login route.
static void logout()
          Action for the logout route.
static void pgtCallBack()
          Action for the proxy call back url.
 
Methods inherited from class play.mvc.Controller
badRequest, checkAuthenticity, error, error, error, error, flash, forbidden, forbidden, getActionAnnotation, getControllerAnnotation, getControllerClass, getControllerInheritedAnnotation, notFound, notFound, notFoundIfNull, notModified, ok, parent, parent, parent, redirect, redirect, redirect, redirect, redirectToStatic, render, renderBinary, renderBinary, renderBinary, renderBinary, renderBinary, renderBinary, renderBinary, renderBinary, renderBinary, renderBinary, renderHtml, renderJSON, renderJSON, renderJSON, renderTemplate, renderTemplate, renderTemplate, renderText, renderText, renderXml, renderXml, reverse, suspend, suspend, template, template, todo, unauthorized, waitFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecureCAS

public SecureCAS()
Method Detail

login

public static void login()
                  throws java.lang.Throwable
Action for the login route. We simply redirect to CAS login page.

Throws:
java.lang.Throwable

logout

public static void logout()
                   throws java.lang.Throwable
Action for the logout route. We clear cache & session and redirect the user to CAS logout page.

Throws:
java.lang.Throwable

fail

public static void fail()
                 throws java.lang.Throwable
Action when the user authentification or checking rights fails.

Throws:
java.lang.Throwable

authenticate

public static void authenticate()
                         throws java.lang.Throwable
Action for the CAS return.

Throws:
java.lang.Throwable

pgtCallBack

public static void pgtCallBack()
                        throws java.lang.Throwable
Action for the proxy call back url.

Throws:
java.lang.Throwable

filter

public static void filter()
                   throws java.lang.Throwable
Method that do CAS Filter and check rights.

Throws:
java.lang.Throwable