We can pass arbitrary strings to the Live.com auth via the state= query parameter, so we use that to pass the host and port we should redirect to after authenticating on Live.com.