Skip to content

Instantly share code, notes, and snippets.

@jmcshane
Created September 22, 2016 02:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmcshane/4d85e2d871b8768235e589110c43ae1c to your computer and use it in GitHub Desktop.
Save jmcshane/4d85e2d871b8768235e589110c43ae1c to your computer and use it in GitHub Desktop.
Security config for manifest details endpoint
@Configuration
@EnableWebSecurity
@Order(SecurityProperties.ACCESS_OVERRIDE_ORDER)
public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http.antMatcher("/**").authorizeRequests().antMatchers("/getManifestDetails").permitAll();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment