@VisibleForTesting
    static boolean isSameUri(String uriString1, String uriString2) {
        if (uriString1.equals(uriString2)) {
            return true;
        }

        final RequestTarget requestTarget1 = RequestTarget.forClient(uriString1);
        if (requestTarget1 == null) {
            throw new IllegalArgumentException("invalid URI: " + uriString1);
        }
        final RequestTarget requestTarget2 = RequestTarget.forClient(uriString2);
        if (requestTarget2 == null) {
            throw new IllegalArgumentException("invalid URI: " + uriString2);
        }

        final String scheme1 = requestTarget1.scheme();
        final String host1 = requestTarget1.host();
        return scheme1 != null && scheme1.equals(requestTarget2.scheme()) &&
               host1 != null && host1.equals(requestTarget2.host()) &&
               requestTarget1.path().equals(requestTarget2.path()) &&
               getPortOrDefault(requestTarget1) == getPortOrDefault(requestTarget2);
    }
A service which receives an assertion from the remote identity provider.
saml/src/main/java/com/linecorp/armeria/server/saml/SamlAssertionConsumerFunction.java