Interface HttpAuthenticationScheme

    • Method Detail

      • processAuthenticationRequest

        @NotNull
        HttpAuthenticationResult processAuthenticationRequest​(@NotNull
                                                              javax.servlet.http.HttpServletRequest request,
                                                              @NotNull
                                                              javax.servlet.http.HttpServletResponse response,
                                                              @NotNull
                                                              Map<String,​String> properties)
                                                       throws IOException
        Processes authentication request.
        If the request does not correspond to this scheme, method must return HttpAuthenticationResult.notApplicable().
        If response object is changed inside the method, method must return HttpAuthenticationResult.unauthenticated().
        Parameters:
        request - request
        response - response
        properties - properties from config file
        Returns:
        result of processing, see above
        Throws:
        IOException - if some I/O error occurred
      • shouldSkip2FA

        default boolean shouldSkip2FA​(@NotNull
                                      javax.servlet.http.HttpServletRequest request,
                                      @NotNull
                                      Map<String,​String> properties)
        Returns whether two-factor authentication should be skipped when this scheme is used.
        Parameters:
        request - request
        properties - properties from config file
        Returns:
        true if two-factor authentication should be skipped, false otherwise