To use OAuth2AuthorizationRequestRedirectFilter.class you need to add this dependency:
OAuth2AuthorizationRequestRedirectFilter.class
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-oauth2-client</artifactId> </dependency>