@Override
    public boolean compare(final String destination, final String endpoint) throws URIException {
        try {
            val destinationWithoutParams = new URIBuilder(destination).clearParameters().toString();
            val endpointWithoutParams = new URIBuilder(endpoint).clearParameters().toString();
            return destinationWithoutParams.equalsIgnoreCase(endpointWithoutParams);
        } catch (final Exception e) {
            throw new URIException(e);
        }
    }
This is {@link ExcludingParametersURIComparator}.

@author Misagh Moayyed
@since 5.0.0
pac4j-saml/src/test/java/org/pac4j/saml/util/ExcludingParametersURIComparator.java