public class AuthTag extends javax.servlet.jsp.tagext.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.
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) |
public AuthTag()
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
public int doEndTag() throws javax.servlet.jsp.JspTagException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspTagException
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 javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.TagSupport
Copyright © 2018 Nuxeo. All rights reserved.