@Override
    public Authentication convert(HttpServletRequest request) {
        String grantType = request.getParameter(OAuth2ParameterNames.GRANT_TYPE);
        if (!this.supportGrantType().equals(grantType)) {
            return null;
        }

        MultiValueMap<String, String> parameters = OAuthEndpointUtils.getParameters(request);
        return this.getAuthentication(parameters);
    }
@author: zlt
@date: 2023/11/18
<p>
Blog: https://zlt2000.gitee.io
Github: https://github.com/zlt2000
zlt-uaa/src/main/java/com/central/oauth/support/base/BaseAuthenticationConverter.java