Re: [apps-discuss] redirects in draft-snell-web-index/WebFinger/SWD
"Paul E. Jones" <paulej@packetizer.com> Wed, 11 July 2012 03:19 UTC
Return-Path: <paulej@packetizer.com>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 72EB811E80C1 for <apps-discuss@ietfa.amsl.com>; Tue, 10 Jul 2012 20:19:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.506
X-Spam-Level:
X-Spam-Status: No, score=-2.506 tagged_above=-999 required=5 tests=[AWL=0.093, BAYES_00=-2.599]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fVslmZ7ETYYm for <apps-discuss@ietfa.amsl.com>; Tue, 10 Jul 2012 20:19:25 -0700 (PDT)
Received: from dublin.packetizer.com (dublin.packetizer.com [75.101.130.125]) by ietfa.amsl.com (Postfix) with ESMTP id 9A95311E8079 for <apps-discuss@ietf.org>; Tue, 10 Jul 2012 20:19:25 -0700 (PDT)
Received: from sydney (rrcs-98-101-148-48.midsouth.biz.rr.com [98.101.148.48]) (authenticated bits=0) by dublin.packetizer.com (8.14.5/8.14.5) with ESMTP id q6B3JpuM022005 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Tue, 10 Jul 2012 23:19:53 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=packetizer.com; s=dublin; t=1341976793; bh=MjUxwb8m5WoNKGOSXTZ54slj3UjAzUyfk0QuKasHuGI=; h=From:To:References:In-Reply-To:Subject:Date:Message-ID: MIME-Version:Content-Type:Content-Transfer-Encoding; b=izYQAk1oBmEK6jL+0P3EdTjtaoTCEN7EHZ5uQ7Wb4/xY+xRYOdxcJplkO4Nal6dna mfa70EDtIP7bm2WdbkGBpfHRf37+izngOfZl+uoRmj1aOPnGwyJws1j07W7ssnUwUe fDc0ftvdmzSy9iNovAkQveuHMKYPOe+9b1sre6fQ=
From: "Paul E. Jones" <paulej@packetizer.com>
To: "'Manger, James H'" <James.H.Manger@team.telstra.com>, 'James M Snell' <jasnell@gmail.com>, 'IETF Apps Discuss' <apps-discuss@ietf.org>
References: <255B9BB34FB7D647A506DC292726F6E114F797793C@WSMSG3153V.srv.dir.telstra.com>
In-Reply-To: <255B9BB34FB7D647A506DC292726F6E114F797793C@WSMSG3153V.srv.dir.telstra.com>
Date: Tue, 10 Jul 2012 23:19:57 -0400
Message-ID: <0de201cd5f14$0dcc9b70$2965d250$@packetizer.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQM8jMPY0typOTnX3235UES6z4/+z5RFDdBw
Content-Language: en-us
Subject: Re: [apps-discuss] redirects in draft-snell-web-index/WebFinger/SWD
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Jul 2012 03:19:26 -0000
James, If it is true that large sites will always host LRDD content at a separate location, then perhaps if the first query to such a site results in a 3xx redirection then the client interested in optimizing queries should issue a subsequent query without the "resource" parameter to discover the location of the LRDD resource. I like the thinking proposed of introducing a new HTTP header, but that could be of general interest outside of WebFinger. Further, one might want to use URI templates (RFC 6570) with such a new HTTP header. Paul > -----Original Message----- > From: apps-discuss-bounces@ietf.org [mailto:apps-discuss-bounces@ietf.org] > On Behalf Of Manger, James H > Sent: Tuesday, July 10, 2012 3:28 AM > To: James M Snell; IETF Apps Discuss > Subject: [apps-discuss] redirects in draft-snell-web-index/WebFinger/SWD > > Various people have said that many (big?) sites will not want to serve > per-user discovery details from their top-domain. For example, they will > serve it from https://id.example.com/, not https://example.com/. > > Redirecting all discovery request from example.com to id.example.com > works, but it does add a round trip. If clients can determine that the > redirection will apply to all future discovery requests, not just the > specific one they are currently making, then the extra round trip is a > once-off that can be ignored. > > SWD solves this with its content-layer SWD_service_redirect. > > WebFinger-without-resource-parameter solves this by providing a template > for per-user details that can use another domain, eg > https://id.example.com/user?u={uri}; or by redirecting the (non-user- > specific) initial request. > > WebFinger-with-a-resource-parameter and draft-snell-web-index don't solve > this issue. > > Ideally, we should solve this at the HTTP layer. An HTTP 3xx response > should be able to indicate that the same response applies to all URIs with > a given prefix. How about: > > HTTP/1.1 307 Moved > Location: https://id.example.com/user?u=acct:paulej@packetizer.com > Redirect: /.well-known/finger https://id.example.com/user > > The "Redirect" header includes a path-prefix and destination URI. The same > redirect applies to any request whose path starts with path-prefix. The > part of the request after the path-prefix is appended to the destination > URI to get the new location. > It is potentially dangerous (a response from any resource on a site can > redirect requests to all other resources on the site), but that might be > solvable. > > -- > James Manger > > > _______________________________________________ > apps-discuss mailing list > apps-discuss@ietf.org > https://www.ietf.org/mailman/listinfo/apps-discuss
- [apps-discuss] redirects in draft-snell-web-index… Manger, James H
- Re: [apps-discuss] redirects in draft-snell-web-i… Julian Reschke
- Re: [apps-discuss] redirects in draft-snell-web-i… James M Snell
- Re: [apps-discuss] redirects in draft-snell-web-i… James M Snell
- Re: [apps-discuss] redirects in draft-snell-web-i… Paul E. Jones