Example usage for org.springframework.security.config.annotation.web.builders WebSecurity ignoring

List of usage examples for org.springframework.security.config.annotation.web.builders WebSecurity ignoring

Introduction

In this page you can find the example usage for org.springframework.security.config.annotation.web.builders WebSecurity ignoring.

Prototype

public IgnoredRequestConfigurer ignoring() 

Source Link

Document

Allows adding RequestMatcher instances that Spring Security should ignore.

Usage

From source file:com.netflix.genie.web.security.SecurityConfig.java

/**
 * {@inheritDoc}/*from  w  w  w  .j  av  a2 s .c om*/
 */
@Override
public void configure(final WebSecurity web) throws Exception {
    web.ignoring().antMatchers("/webjars/**", "/images/**", "/css/**", "/templates/**", "/js/**", "/vendor/**");
}

From source file:ch.javaee.basicMvc.config.SecurityConfig.java

/**
 * We don't check the credentials for the static content
 *
 * @param web//from w w  w .j  a va  2  s .c o  m
 * @throws Exception
 */
@Override
public void configure(WebSecurity web) throws Exception {
    web.ignoring().antMatchers("/assets/**");
}

From source file:org.meruvian.yama.webapi.config.SecurityConfig.java

@Override
public void configure(WebSecurity web) throws Exception {
    web.ignoring().antMatchers("/oauth/uncache_approvals", "/oauth/cache_approvals").antMatchers("*.html")
            .antMatchers("*.js").antMatchers("*.css").antMatchers("*.jpg", "*.png", "*.gif")
            .antMatchers("/bower_components/**");
}

From source file:com.test.config.BackendConsoleConfig.java

@Override
public void configure(final WebSecurity web) throws Exception {
    web.ignoring().antMatchers("/resources/*");
}

From source file:net.oneandone.stool.overview.config.SecurityConfiguration.java

@Override
public void configure(WebSecurity web) throws Exception {
    web.ignoring().antMatchers("/ressources/**").antMatchers("/favicon.ico").antMatchers("/system");
}

From source file:org.jblogcms.core.config.SecurityContext.java

@Override
public void configure(WebSecurity web) throws Exception {
    web.ignoring().antMatchers("/themes/**");
}

From source file:org.devgateway.toolkit.forms.FormsSecurityConfig.java

/**
 * We ensure the superclass configuration is being applied Take note the
 * {@link FormsSecurityConfig} extends {@link WebSecurityConfig} which has
 * configuration for the dg-toolkit/web module. We then apply ant matchers
 * and ignore security for css/js/images resources, and wicket mounted
 * resources//from ww w. j ava2  s  .c  om
 */
@Override
public void configure(final WebSecurity web) throws Exception {
    super.configure(web);
    web.ignoring().antMatchers("/ui/**", "/img/**", "/css*/**", "/js*/**", "/assets*/**",
            "/wicket/resource/**/*.js", "/wicket/resource/**/*.css", "/wicket/resource/**/*.png",
            "/wicket/resource/**/*.jpg", "/wicket/resource/**/*.gif", "/login/**", "/forgotPassword/**",
            "/resources/**", "/resources/public/**");
}

From source file:com.jiwhiz.web.config.SecurityConfig.java

@Override
public void configure(WebSecurity web) throws Exception {
    web.ignoring().antMatchers("/bower_components/**").antMatchers("/fonts/**").antMatchers("/images/**")
            .antMatchers("/scripts/**").antMatchers("/styles/**").antMatchers("/views/**")
            .antMatchers("/index.html").antMatchers("/");
}

From source file:aka.pirana.springsecurity.config.SecurityConfig.java

@Override
public void configure(WebSecurity web) throws Exception {
    System.out.println("aka.pirana.springsecurity.config.SecurityConfig.configure(web)");
    web.ignoring().antMatchers("/resources/**");
}

From source file:ru.mystamps.web.support.spring.security.SecurityConfig.java

@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void configure(WebSecurity web) throws Exception {
    web.ignoring().antMatchers("/static/**", "/public/**");
}