类 RefreshTokenEndpointConfigurer

java.lang.Object
io.github.mangocrisp.spring.taybct.auth.security.granter.RefreshTokenEndpointConfigurer
所有已实现的接口:
IOtherTokenEndpointConfigurer, Function<org.springframework.security.oauth2.server.authorization.OAuth2Authorization,org.springframework.security.core.userdetails.UserDetails>, org.springframework.security.config.Customizer<org.springframework.security.oauth2.server.authorization.config.annotation.web.configurers.OAuth2TokenEndpointConfigurer>

public abstract class RefreshTokenEndpointConfigurer extends Object implements IOtherTokenEndpointConfigurer, Function<org.springframework.security.oauth2.server.authorization.OAuth2Authorization,org.springframework.security.core.userdetails.UserDetails>
自定义 token 鉴权,这里要实现的 Function<OAuth2Authorization, UserDetails> 是实现你自定义的鉴权模式将要如何刷新 token
  • 构造器详细资料

    • RefreshTokenEndpointConfigurer

      public RefreshTokenEndpointConfigurer()
  • 方法详细资料

    • support

      public abstract boolean support(org.springframework.security.oauth2.core.AuthorizationGrantType authorizationGrantType)
      用于刷新模式下刷新 token,支持的鉴权类型
      参数:
      authorizationGrantType - 鉴权类型,这个可以从 token 管理里面的刷新 token 中获取到
      返回:
      是否支持