    def test_can_read_token_from_query_parameters(self):
        """Tests that Sydent correct extracts an auth token from query parameters"""
        self.sydent.run()

        request, _ = make_request(
            self.sydent.reactor, "GET",
            "/_matrix/identity/v2/hash_details?access_token=" + self.test_token
        )

        token = tokenFromRequest(request)

        self.assertEqual(token, self.test_token)
The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.