Package org.mycore.user2.login
Class MCRCASServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.mycore.frontend.servlets.MCRServlet
org.mycore.user2.login.MCRCASServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
Login user with JA-SIG Central Authentication Service (CAS).
The servlet validates the ticket returned from CAS and
builds a User object to login to the current session.
For /servlets/MCRCASServlet, a authentication filter must be defined
in web.xml. The following properties must be configured in
mycore.properties:
The URL of the CAS Client Servlet:
MCR.user2.CAS.ClientURL=http://localhost:8291/servlets/MCRCASServlet
The Base URL of the CAS Server
MCR.user2.CAS.ServerURL=https://cas.uni-duisburg-essen.de/cas
The realm the CAS Server authenticates for, as in realms.xml
MCR.user2.CAS.RealmID=ude
Configure store of trusted SSL (https) server certificates
MCR.user2.CAS.SSL.TrustStore=/path/to/java/lib/security/cacerts
MCR.user2.CAS.SSL.TrustStore.Password=changeit
After successful login, MCRCASServlet queries an LDAP server for
the user's properties.
- Author:
- Frank Lützenkirchen
- See Also:
-
Field Summary
Fields inherited from class org.mycore.frontend.servlets.MCRServlet
ATTR_MYCORE_SESSION, CURRENT_THREAD_NAME_KEY, INITIAL_SERVLET_NAME_KEY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
doGetPost
(MCRServletJob job) This method should be overwritten by other servlets.void
init()
Methods inherited from class org.mycore.frontend.servlets.MCRServlet
allowCrossDomainRequests, buildRedirectURL, cleanupMCRSession, doGet, doGet, doPost, doPost, getErrorI18N, getLastModified, getLayoutService, getProperty, getReferer, getServletBaseURL, getSession, handleException, initializeMCRSession, render, reportException, think, toReferrer, toReferrer
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, service, service
Methods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
MCRCASServlet
public MCRCASServlet()
-
-
Method Details
-
init
public void init() throws jakarta.servlet.ServletException- Overrides:
init
in classMCRServlet
- Throws:
jakarta.servlet.ServletException
-
doGetPost
Description copied from class:MCRServlet
This method should be overwritten by other servlets. As a default response we indicate the HTTP 1.1 status code 501 (Not Implemented).- Overrides:
doGetPost
in classMCRServlet
- Throws:
Exception
-