类 CustomGrantConfig
java.lang.Object
cn.bbwres.biscuit.security.oauth2.config.CustomGrantConfig
自定义的Granter 配置
- 作者:
- zhanglinfeng
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明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) 用户名密码方式登录的GrantAuthenticationProvider
-
构造器详细资料
-
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
-