private static int getPortOrDefault(RequestTarget requestTarget) {
        final int port = requestTarget.port();
        if (port > 0) {
            return port;
        }

        final String scheme = requestTarget.scheme();
        assert scheme != null;
        switch (scheme.toLowerCase()) {
            case "http": {
                return 80;
            }
            case "https": {
                return 443;
            }
            default: {
                throw new IllegalArgumentException("Unknown scheme: " + scheme);
            }
        }
    }
A service which receives an assertion from the remote identity provider.
saml/src/main/java/com/linecorp/armeria/server/saml/SamlAssertionConsumerFunction.java