Added Post system. Notification system

This commit is contained in:
redtea committed 2022-09-01 17:04:25 +03:00
1 parent cc068fc3a8
commit 3ac444931c
29 files changed
+639 -86

No files matched your search

@@ -33,29 +33,18 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
// http
// .authorizeRequests()
// .antMatchers("/swagger-ui.html").permitAll()
// .antMatchers("/swagger-ui/index.html").permitAll()
// .antMatchers("/webjars/**").permitAll()
// .antMatchers("/swagger-resources/**").permitAll()
// .antMatchers("/v3/*").permitAll()
// .antMatchers("/csrf").permitAll()
// .antMatchers("/").permitAll()
// .and()
http.cors().and().csrf().disable()
.exceptionHandling().authenticationEntryPoint(jwtAuthenticationEntryPoint)
.and()
.sessionManagement()
.sessionCreationPolicy(SessionCreationPolicy.STATELESS)
.and()
.authorizeRequests()
.antMatchers(SecurityConstants.SIGN_UP_URLS).permitAll()
.antMatchers("/").permitAll()
.anyRequest().authenticated();
http.addFilterBefore(jwtFilter, UsernamePasswordAuthenticationFilter.class);
// .cors().and().csrf().disable()
// .exceptionHandling().authenticationEntryPoint(jwtAuthenticationEntryPoint)
// .and()
// .sessionManagement()
// .sessionCreationPolicy(SessionCreationPolicy.STATELESS)
// .and()
// .authorizeRequests()
// .antMatchers(SecurityConstants.SIGN_UP_URLS).permitAll()
// .anyRequest().authenticated();
//
// http.addFilterBefore(jwtFilter, UsernamePasswordAuthenticationFilter.class);
}
@Bean