Created
March 10, 2021 06:02
add signin, signup in antmatcher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void configure(HttpSecurity security) throws Exception { | |
security.csrf().disable() | |
.authorizeRequests() | |
.antMatchers("/authenticate", "/signin", "/signup").permitAll() | |
.anyRequest().authenticated().and().sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS); | |
security.addFilterBefore(jwtRequestFilter, UsernamePasswordAuthenticationFilter.class); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment