Class OAuth2ResourceOwnerPasswordAuthenticationConverter

java.lang.Object
cn.herodotus.engine.oauth2.authentication.provider.AbstractAuthenticationConverter
cn.herodotus.engine.oauth2.authentication.provider.OAuth2ResourceOwnerPasswordAuthenticationConverter
All Implemented Interfaces:
org.springframework.security.web.authentication.AuthenticationConverter

public final class OAuth2ResourceOwnerPasswordAuthenticationConverter extends AbstractAuthenticationConverter

Description: 自定义密码模式认证转换器

AuthenticationConverter 类似于以前的 AbstractTokenGranter 主要用途是从请求中获取参数,并拼装Token类

Author:
: gengwei.zheng
Date:
: 2022/2/22 17:03
  • Constructor Details

    • OAuth2ResourceOwnerPasswordAuthenticationConverter

      public OAuth2ResourceOwnerPasswordAuthenticationConverter(HttpCryptoProcessor httpCryptoProcessor)
  • Method Details

    • convert

      @Nullable public org.springframework.security.core.Authentication convert(jakarta.servlet.http.HttpServletRequest request)