类 CustomGrantConfig

java.lang.Object
cn.bbwres.biscuit.security.oauth2.config.CustomGrantConfig

@AutoConfiguration public class CustomGrantConfig extends Object
自定义的Granter 配置
作者:
zhanglinfeng
  • 构造器详细资料

    • CustomGrantConfig

      public CustomGrantConfig()
  • 方法详细资料

    • usernamePasswordAuthenticationGrant

      @Bean public UsernamePasswordAuthenticationGrant usernamePasswordAuthenticationGrant(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService, org.springframework.security.oauth2.server.authorization.token.DelegatingOAuth2TokenGenerator tokenGenerator, org.springframework.security.core.userdetails.UserDetailsService userDetailsService) throws Exception
      用户名密码方式登录的GrantAuthenticationProvider
      返回:
      UsernamePasswordGrantAuthenticationProvider
      抛出:
      Exception