Rinchin G
Подскажите почему не работает permitAll? Пытаюсь зайти Post localhost:8080/authenticate?
http
.authorizeRequests().antMatchers("/authenticate").permitAll()
.anyRequest().authenticated().and()
.exceptionHandling().authenticationEntryPoint(jwtAuthenticationEntryPoint).and().sessionManagement()
.sessionCreationPolicy(SessionCreationPolicy.STATELESS);
// Add a filter to validate the tokens with every request
http.addFilterBefore(jwtRequestFilter, UsernamePasswordAuthenticationFilter.class);
и все равно заходит в фильтр
В фильтр, по идее, всегда будет заходить. Так фильтры устроены.