List of usage examples for org.springframework.security.config.annotation.web.builders HttpSecurity authorizeRequests
public ExpressionUrlAuthorizationConfigurer<HttpSecurity>.ExpressionInterceptUrlRegistry authorizeRequests() throws Exception
From source file:com.orange.clara.tool.config.ResourceServerConfig.java
@Override public void configure(HttpSecurity http) throws Exception { http.authorizeRequests().antMatchers("/api/admin/**").hasRole(UserRole.ADMIN); }
From source file:st.malike.auth.client.security.ResourceServerConfig.java
@Override public void configure(HttpSecurity http) throws Exception { http.authorizeRequests().antMatchers("/**").authenticated().and().sessionManagement() .sessionCreationPolicy(SessionCreationPolicy.STATELESS); }
From source file:br.com.ifc.web.core.SecurityConfig.java
@Override protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests().antMatchers("/login").permitAll().antMatchers("/", "/*todo*/**") .access("hasRole('USER')").and().formLogin(); }
From source file:com.alejandroszlv.mock.web.config.security.SecurityConfig.java
@Override protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests().antMatchers("/admin/**").access("hasRole('ROLE_ADMIN')").and().formLogin(); }
From source file:org.brutusin.rpc_chat.security.SecurityConfig.java
@Override protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests().anyRequest().permitAll(); }
From source file:ca.qhrtech.security.BGLWebSecurityConfiguration.java
@Override protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests().anyRequest().fullyAuthenticated().and().httpBasic().and().csrf().disable(); }
From source file:com.angular2.security.SecurityConfig.java
@Override protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests().anyRequest().fullyAuthenticated(); http.httpBasic();//from w w w.j a v a2 s .com http.csrf().disable(); }
From source file:com.artivisi.auth.basic.config.WebSecurityConfig.java
@Override protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests().anyRequest().authenticated().and().csrf().disable().formLogin().loginPage("/login") .permitAll().and().logout().permitAll(); }
From source file:com.projectthree.projectthree.security.SecurityConfig.java
@Override protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests().anyRequest().permitAll(); http.headers().frameOptions().sameOrigin().xssProtection().block(false); }
From source file:de.chclaus.examples.SecurityConfig.java
@Override protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests().antMatchers("/", "/auth/**").permitAll().antMatchers("/secured").hasRole("USER"); }