spring boot project?
                  
                  
                  I need it because I have both web and rest api sections.
                  
                  
                  
                  
                  
                  I could combine Form-login and Basic Authentication. So that I used two WebSecurityConfigurerAdapter for basic and form-login and everything works perfectly.
                  
                  
                  
                  
                  
                  In OAuth2 case I added a static class that extends 
                  
                  
                  ResourceServerConfigurerAdapter.
                  
                  
                  I need only resource server here , because my AuthorizationServer is in other server.
                  
                  
                  
                  
                  
                  Then I used configure(HttpSecurity http) of ResourceServerConfigurerAdapter for OAuth2 section, but oauth2 endpoints calling results in login page again.
                  
                  
                
https://spring.io/projects/spring-security-oauth#learn
Обсуждают сегодня