Skip to content

Instantly share code, notes, and snippets.

@boudhayan-dev
Created May 1, 2021 18:20
Show Gist options
  • Save boudhayan-dev/7688ec578940f5115149f6c9cb762a49 to your computer and use it in GitHub Desktop.
Save boudhayan-dev/7688ec578940f5115149f6c9cb762a49 to your computer and use it in GitHub Desktop.
protected void configure(HttpSecurity http) throws Exception {
this.logger.debug("Using default configure(HttpSecurity). "
+ "If subclassed this will potentially override subclass configure(HttpSecurity).");
http.authorizeRequests((requests) -> requests.anyRequest().authenticated());
http.formLogin();
http.httpBasic();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment