Class NuxeoOAuth1Servlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.nuxeo.ecm.platform.ui.web.auth.oauth.NuxeoOAuth1Servlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class NuxeoOAuth1Servlet extends javax.servlet.http.HttpServlet
Servlet for the /oauth endpoint.
Since:
10.3
See Also:
  • Field Details

  • Constructor Details

    • NuxeoOAuth1Servlet

      public NuxeoOAuth1Servlet()
  • Method Details

    • urlEncode

      protected static String urlEncode(String string)
    • doGet

      protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
      Overrides:
      doGet in class javax.servlet.http.HttpServlet
      Throws:
      javax.servlet.ServletException
      IOException
    • doPost

      protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
      Overrides:
      doPost in class javax.servlet.http.HttpServlet
      Throws:
      javax.servlet.ServletException
      IOException
    • doGetAuthorize

      protected void doGetAuthorize(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
      Generates a request token, redirects to the Nuxeo login page, and provides a later redirect URL to the OAuth grant page.
      Throws:
      IOException
    • doPostAuthorize

      protected void doPostAuthorize(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
      Adds a verifier and username to the request token and redirects to the callback URL.
      Throws:
      IOException
    • doGetRequestToken

      protected void doGetRequestToken(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
      Throws:
      IOException
    • doGetAccessToken

      protected void doGetAccessToken(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
      Throws:
      IOException