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

public class MCRCASServlet extends MCRServlet
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:
  • Constructor Details

    • MCRCASServlet

      public MCRCASServlet()
  • Method Details

    • init

      public void init() throws jakarta.servlet.ServletException
      Overrides:
      init in class MCRServlet
      Throws:
      jakarta.servlet.ServletException
    • doGetPost

      public void doGetPost(MCRServletJob job) throws Exception
      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 class MCRServlet
      Throws:
      Exception