private boolean matchPostfixes()

in saml-authentication-server/src/main/java/jetbrains/buildServer/auth/saml/plugin/SamlAuthenticationScheme.java [260:271]


    private boolean matchPostfixes(String username, String allowedPostfixes) {
        var postfixes = allowedPostfixes.split(",");
        for(var postfix : postfixes) {
            if (username.trim().endsWith(postfix.trim())) {
                LOG.info(String.format("Username %s ends with valid postfix %s", username, postfix));
                return true;
            }
        }

        LOG.warn(String.format("No valid postfixes were detected for username %s", username));
        return false;
    }