Class NuxeoOAuth1Authenticator

    • Constructor Detail

      • NuxeoOAuth1Authenticator

        public NuxeoOAuth1Authenticator()
    • Method Detail

      • handleLoginPrompt

        public Boolean handleLoginPrompt​(javax.servlet.http.HttpServletRequest httpRequest,
                                         javax.servlet.http.HttpServletResponse httpResponse,
                                         String baseURL)
        Description copied from interface: NuxeoAuthenticationPlugin
        Handles the Login Prompt.
        Specified by:
        handleLoginPrompt in interface NuxeoAuthenticationPlugin
        Parameters:
        httpRequest - the request
        httpResponse - the response
        Returns:
        true if AuthFilter must stop execution (ie: login prompt generated a redirect), false otherwise
      • isOAuth1SignedRequest

        protected boolean isOAuth1SignedRequest​(javax.servlet.http.HttpServletRequest request)
      • getIdentity

        protected String getIdentity​(javax.servlet.http.HttpServletRequest request)
      • getOAuth1Identity

        protected String getOAuth1Identity​(javax.servlet.http.HttpServletRequest request)
                                    throws IOException
        Verifies OAuth information and returns identity.
        Throws:
        IOException
      • getRequestURL

        public static String getRequestURL​(javax.servlet.http.HttpServletRequest request)
        Gets the URL used for this request by checking the X-Forwarded-Proto header used in the request.