/*
 * Copyright (c) 2012 Haulmont Technology Ltd. All Rights Reserved.
 * Haulmont Technology proprietary and confidential.
 * Use is subject to license terms.
 */

package com.haulmont.cuba.web.sys.auth;

import com.haulmont.cuba.security.global.LoginException;

import javax.servlet.Filter;
import java.util.Locale;

/**
 * @author artamonov
 * @version $Id$
 */
public interface CubaAuthProvider extends Filter {

    public static final String NAME = "cuba_AuthProvider";

    /**
     * Login procedure with user and password
     *
     * @param login    User login
     * @param password User password
     * @param loc      Locale
     * @throws LoginException Login exception
     */
    void authenticate(String login, String password, Locale loc) throws LoginException;
}

@@ -297,16 +297,54 @@
 ilter;%0D%0A
+import javax.servlet.ServletRequest;%0D%0A
 import j
@@ -841,12 +841,151 @@
 eption;%0D
+%0A%0D%0A    /**%0D%0A     * @param request Http request%0D%0A     * @return True if auth needed%0D%0A     */%0D%0A    boolean needAuth(ServletRequest request);%0D
 %0A%7D%0D%0A

Active Directory: IE 8 sends auth on each request