Example usage for org.springframework.security.web.authentication.www BasicAuthenticationEntryPoint subclass-usage

List of usage examples for org.springframework.security.web.authentication.www BasicAuthenticationEntryPoint subclass-usage

Introduction

In this page you can find the example usage for org.springframework.security.web.authentication.www BasicAuthenticationEntryPoint subclass-usage.

Usage

From source file Core.Security.CustomEntryPoint.java

/**
 *
 * @author jakubvacek
 */
public class CustomEntryPoint extends BasicAuthenticationEntryPoint {

From source file com.counter.counter.api.AuthenticationEntryPoint.java

@Component
public class AuthenticationEntryPoint extends BasicAuthenticationEntryPoint {

    @Override
    public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authEx)
            throws IOException, ServletException {

From source file com.ebay.pulsar.analytics.security.spring.PlainTextBasicAuthenticationEntryPoint.java

/**
 * 
 *@author qxing
 * 
 **/
public class PlainTextBasicAuthenticationEntryPoint extends BasicAuthenticationEntryPoint {

From source file com.github.iexel.fontus.web.security.RestAuthenticationEntryPoint.java

public class RestAuthenticationEntryPoint extends BasicAuthenticationEntryPoint {

    // The commence() method in the base class adds a "WWW-Authenticate" HTTP header,
    // but the header causes browsers to prompt for user credentials. This class was created to
    // override the method and to rid of "WWW-Authenticate". (Though it is a breach of the HTTP specifications.)
    @Override

From source file com.brandseye.cors.CorsCompatibleBasicAuthenticationEntryPoint.java

/**
 * Prevents authentication of HTTP OPTIONS preflight requests which would otherwise break CORS in most browsers.
 */
public class CorsCompatibleBasicAuthenticationEntryPoint extends BasicAuthenticationEntryPoint {

    public CorsCompatibleBasicAuthenticationEntryPoint() {

From source file pdl.web.filter.JsonBasicAuthenticationEP.java

/**
 * Created by IntelliJ IDEA.
 * User: hkim
 * Date: 1/10/12
 * Time: 9:11 AM
 */

From source file ro.allevo.fintpws.security.ApiAuthenticationEntryPoint.java

public class ApiAuthenticationEntryPoint extends BasicAuthenticationEntryPoint {

    @Override
    public void commence(HttpServletRequest request, HttpServletResponse response,
            AuthenticationException authException) throws IOException, ServletException {
        response.addHeader("Access-Control-Allow-Origin", "null");

From source file gateway.auth.PiazzaBasicAuthenticationEntryPoint.java

/**
 * Custom Sprint 'Entry Point' that issues an appropriate response when authentication fails.
 * 
 * @author Russell.Orf
 * 
 */

From source file com.econcept.init.AppAuthenticationEntryPoint.java

public class AppAuthenticationEntryPoint extends BasicAuthenticationEntryPoint {
    @Override
    public void commence(HttpServletRequest request, HttpServletResponse pResponse,
            AuthenticationException authException) throws IOException, ServletException {
        pResponse.addHeader("WWW-Authenticate", "xBasic realm=\"" + getRealmName() + "\"");
        pResponse.sendError(HttpServletResponse.SC_UNAUTHORIZED, authException.getMessage());

From source file it.geosolutions.geostore.services.rest.security.RestAuthenticationEntryPoint.java

/**
 * This Class wrap the AuthenticationEntryPoint to reply with forbidden for the 
 * /users/user/details path.
 * It is used to emulate the login without showing a WWW-Authenticate window in the browser
 * @author Lorenzo Natali (lorenzo.natali at geo-solutions.it)
 *