@Configuration
+ @EnableOAuth2Sso
+ @EnableAutoConfiguration
+ protected static class TestConfiguration extends OAuth2SsoConfigurerAdapter {
+ @Override
+ public void configure(HttpSecurity http) {
+ http.authorizeRequests()
+ .antMatchers("/admin/**").role("ADMIN")
+ .anyRequest().authenticated();
+ }
+ }
+