BN
Size: a a a
BN
KK
М
KK
L
.authorizeRequests()через antMatchers
.antMatchers("/api/register").permitAll()
.antMatchers("/api/activate").permitAll()
.antMatchers("/api/authenticate").permitAll()
.antMatchers("/api/logs/**").hasAuthority(AuthoritiesConstants.ADMIN)
.antMatchers("/api/subscriptions").permitAll()
.antMatchers("/api/**").authenticated();
KK
.authorizeRequests()через antMatchers
.antMatchers("/api/register").permitAll()
.antMatchers("/api/activate").permitAll()
.antMatchers("/api/authenticate").permitAll()
.antMatchers("/api/logs/**").hasAuthority(AuthoritiesConstants.ADMIN)
.antMatchers("/api/subscriptions").permitAll()
.antMatchers("/api/**").authenticated();
b
.authorizeRequests()
.antMatchers("public/users").permitAll()
.anyRequest().authenticated() <-- requires authentication for any other requests
KK
.authorizeRequests()
.antMatchers("public/users").permitAll()
.anyRequest().authenticated() <-- requires authentication for any other requests
OM
ConvertOperators.ToObjectId
работает с group
в java или kotlin ? (spring data, mongo aggregate)$group: {_id: { $toObjectId: "поле"}}
q
http.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and().
csrf().disable().cors().and().authorizeRequests()
.antMatchers(HttpMethod.POST, "/login").permitAll()
.antMatchers("/api/users").denyAll()
.anyRequest().authenticated()
.and()
.addFilterBefore(new LoginFilter("/login", authenticationManager()),
UsernamePasswordAuthenticationFilter.class)
.addFilterBefore(new AuthenticationFilter(),
UsernamePasswordAuthenticationFilter.class);
DS
.anonimous()
для неавторизованных - не то?.antMatchers
массив разрешённых, чтобы портянки с перечислением всех поадресно не было.q
KK
.anonimous()
для неавторизованных - не то?.antMatchers
массив разрешённых, чтобы портянки с перечислением всех поадресно не было.KK
KK
ГС
ГС