public class AuthTag extends TagSupport
Authentication tag for use with the Yale Central Authentication Service.
Typical usage involves placing the tag at the top of the page. The tag checks to determine if the attribute referenced by id/scope exists; if it does, the tag has no runtime effect. If the attribute does not exist, however, a CAS authentication is necessary: if no ticket is present, we redirect to CAS, and if a ticket is present, we validate it. Upon successful CAS authentication (either by a pre-existing attribute or through CAS directly), we store the NetID in the attribute referenced by id/scope.
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
AuthTag() |
Modifier and Type | Method and Description |
---|---|
void |
addAuthorizedProxy(String proxyId) |
int |
doEndTag() |
int |
doStartTag() |
void |
release() |
void |
setCasLogin(String url) |
void |
setCasValidate(String url) |
void |
setScope(String scope) |
void |
setService(String service) |
void |
setVar(String var) |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class TagSupport
JspException
public int doEndTag() throws JspTagException
doEndTag
in interface Tag
doEndTag
in class TagSupport
JspTagException
public void setVar(String var)
public void setScope(String scope)
public void setCasLogin(String url)
public void setCasValidate(String url)
public void addAuthorizedProxy(String proxyId)
public void setService(String service)
public void release()
release
in interface Tag
release
in class TagSupport
Copyright © 2013 Nuxeo SA. All Rights Reserved.