Spring Oauth2 Authorization Server

后端 未结 1 479
伪装坚强ぢ
伪装坚强ぢ 2021-02-08 07:15

I setting the Spring Configuration Below:

@EnableAuthorizationServer
@EnableWebSecurity
@Configuration
public class Oauth2Provider extends WebSecurityConfigurerA         


        
相关标签:
1条回答
  • 2021-02-08 07:51

    To use password grant you need to provide an authentication manager to the authorization server (in the empty method with the TODO in your example), so it can authenticate users. If it's a Spring Boot application there is always an AuthenticationManager available to be @Autowired.

    0 讨论(0)
提交回复
热议问题