I am trying to add OAuth2 to WebFlux and cannot find any working example.
To implement my own authorization server, I use the following code:
@EnableAuthorizationServer @Configuration public class ServerAuth extends AuthorizationServerConfigurerAdapter { ... }
And my spring boot application stops working because inside the AuthorizationServerConfigurerAdapter class, AuthorizationServerSecurityConfigurer is used, which depends on javax.servlet.Filter , but there are no servlet filters in the WebFlux application.
Also, AuthorizationServerEndpointsConfigurer expects initialization using UserDetailsService (old inactive api) does not respond UserDetailsRepository
Is it possible to use oauth2 in the current WebFlux application, if so, you can show this example.
thanks
spring-boot spring-security spring-security-oauth2 spring-webflux
Max grigoriev
source share