Class MCROAuthServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.mycore.frontend.servlets.MCRServlet
org.mycore.orcid.oauth.MCROAuthServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public class MCROAuthServlet extends MCRServlet
Implements ORCID OAuth2 authorization. User should invoke MCROAuthServlet without any parameters. The servlet will redirect the user to orcid.org authorization. The user will login at orcid.org and accept or deny this application as trusted party for the activity scopes defined in MCR.ORCID.OAuth.Scopes. orcid.org then redirects the user's browser to this servlet again. If the scopes were accepted by user, the response contains a code parameter. This code is exchanged for an access token and stored in the user's attributes here. See https://members.orcid.org/api/oauth/3legged-oauth
Author:
Frank Lützenkirchen
See Also:
  • Constructor Details

    • MCROAuthServlet

      public MCROAuthServlet()
  • Method Details

    • doGetPost

      protected 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