Spring Security Oauth - неверные полномочияJAVA

Программисты JAVA общаются здесь
Anonymous
Spring Security Oauth - неверные полномочия

Сообщение Anonymous »

Struggling with this error, while I trying login via OAUTH GOOGLE.
Изображение

My securityfilterchain:
@Bean
public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
//http.cors(cors -> cors.configurationSource(corsConfigurationSource()));
http.cors(cors -> cors.disable());
http.csrf(csrf ->csrf.ignoringRequestMatchers("/oauth/*", "/auth/user"));
http.authorizeHttpRequests(request -> request.requestMatchers("/oauth/*","/auth/user").permitAll().anyRequest().authenticated());
http.oauth2Login(login -> login.successHandler(((request, response, authentication) -> response.sendRedirect("/auth/user"))));

return http.build();
}

in application.properties , у меня есть:
spring.security.oauth2.client.registration.google.client-id= my client id
spring.security.oauth2.client.registration.google.client-secret= my client secret

Есть ли что -то еще, что я должен настроить? Причина этого нуля была автоматически настроена на файлы cookie 'SameSite' этим @bean < /p>
@Bean
public CookieSameSiteSupplier applicationCookieSameSiteSupplier() {
return CookieSameSiteSupplier.ofStrict();
}


Подробнее здесь: https://stackoverflow.com/questions/795 ... redentials

Вернуться в «JAVA»