public Authentication getAuthentication(MultiValueMap<String, String> parameters) {
        Set<String> requestScopes = this.getRequestScopes(parameters);

        Map<String, Object> additionalParameters = getAdditionalParameters(parameters, this.paramNames());

        Authentication clientPrincipal = SecurityContextHolder.getContext().getAuthentication();

        BaseAuthenticationToken baseToken = this.getToken(parameters);
        baseToken.setScopes(requestScopes);
        baseToken.setAdditionalParameters(additionalParameters);
        baseToken.setClientPrincipal(clientPrincipal);
        return baseToken;
    }
@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