Re: [webfinger] Question about device info discovery example.

nov matake <matake@gmail.com> Sat, 22 December 2012 05:53 UTC

Return-Path: <matake@gmail.com>
X-Original-To: webfinger@ietfa.amsl.com
Delivered-To: webfinger@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6004D21F88BE for <webfinger@ietfa.amsl.com>; Fri, 21 Dec 2012 21:53:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.625
X-Spam-Level:
X-Spam-Status: No, score=-2.625 tagged_above=-999 required=5 tests=[AWL=-0.557, BAYES_00=-2.599, HTML_MESSAGE=0.001, HTTP_ESCAPED_HOST=0.134, MIME_QP_LONG_LINE=1.396, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pPBgZsWpUZog for <webfinger@ietfa.amsl.com>; Fri, 21 Dec 2012 21:53:19 -0800 (PST)
Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) by ietfa.amsl.com (Postfix) with ESMTP id D747B21F881A for <webfinger@ietf.org>; Fri, 21 Dec 2012 21:53:19 -0800 (PST)
Received: by mail-pa0-f49.google.com with SMTP id bi1so3215717pad.8 for <webfinger@ietf.org>; Fri, 21 Dec 2012 21:53:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :cc:message-id:references:to:x-mailer; bh=mlTzFIIqX5anBnVqYzth+CJ248zC5QKelZPy+RoiWbk=; b=0Kf7/CBh4OSzpCF9/Gl9E9L9l+JwdM2P5Iao1MPInX0a169LSKwrPuSlbM3UkOOwtM keKwpA7gc7E+BPDLC60ochxBKRWsOVVUWXFwiJgPYyzHxbGaQ9cDcHQi9jINUWr7e5cm 4x/rihuLHfzYWUfRzjgg5fKvG69TlpyoB4RRQvaHmcqEqSw2qAhTvhkM6Ne2aazy4kUJ VDC9QP+8RyIDUmNrfsfxzSo63PtusbQ2EHbNb49CrpES5vrOQA0dPrGDfTUOB8uH1xm3 tu7U/An0oSXTcu6LGpt1SiqQbm9W1bV4IiBp5DPdIQRkU3rX+JXSr94K2RgtxxhLBnQm udPA==
X-Received: by 10.66.73.105 with SMTP id k9mr43257365pav.37.1356155599566; Fri, 21 Dec 2012 21:53:19 -0800 (PST)
Received: from [192.168.1.6] (z195031.dynamic.ppp.asahi-net.or.jp. [110.4.195.31]) by mx.google.com with ESMTPS id kc4sm8252993pbc.23.2012.12.21.21.53.17 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 21 Dec 2012 21:53:18 -0800 (PST)
Content-Type: multipart/alternative; boundary="Apple-Mail=_D710BE96-824A-447F-A9F8-67026E06A930"
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
From: nov matake <matake@gmail.com>
In-Reply-To: <07b101cde007$feba5670$fc2f0350$@packetizer.com>
Date: Sat, 22 Dec 2012 14:53:17 +0900
Message-Id: <D01E7D4C-BAC5-485A-8234-1876683B187D@gmail.com>
References: <D6A97D9D-9431-4C0F-9428-397677C179D1@gmail.com> <075b01cde000$d283d790$778b86b0$@packetizer.com> <1B7C31D3-E41E-4DF2-910F-AC43340C62D6@gmail.com> <077601cde004$d8ae8760$8a0b9620$@packetizer.com> <078901cde006$bc9724e0$35c56ea0$@packetizer.com> <E2336B85-D7B4-4E98-AD84-021439A12BCA@gmail.com> <07b101cde007$feba5670$fc2f0350$@packetizer.com>
To: "Paul E. Jones" <paulej@packetizer.com>
X-Mailer: Apple Mail (2.1499)
Cc: webfinger@ietf.org
Subject: Re: [webfinger] Question about device info discovery example.
X-BeenThere: webfinger@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Discussion of the Webfinger protocol proposal in the Applications Area <webfinger.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/webfinger>, <mailto:webfinger-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/webfinger>
List-Post: <mailto:webfinger@ietf.org>
List-Help: <mailto:webfinger-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/webfinger>, <mailto:webfinger-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 22 Dec 2012 05:53:21 -0000

Cleaner :)

On 2012/12/22, at 14:48, "Paul E. Jones" <paulej@packetizer.com> wrote:

> I’m not. :-)
>  
> Wordsmithing… how about this:
>  
> Note that the host queried in this example is different than for the acct URI example, since the URI refers to a different host.  Either this host would provide a response, or it would redirect the client to another host (e.g., redirect back to example.com).  Either way, ...
>  
> I’m trying to make it clearer. I think the last version was not so clear.
>  
> Paul
>  
> From: nov matake [mailto:matake@gmail.com] 
> Sent: Saturday, December 22, 2012 12:44 AM
> To: Paul E. Jones
> Cc: webfinger@ietf.org
> Subject: Re: [webfinger] Question about device info discovery example.
>  
> Thanks, I'm happy with the change :-)
>  
> On 2012/12/22, at 14:39, "Paul E. Jones" <paulej@packetizer.com> wrote:
> 
> 
> Nov,
>  
> As I quickly looked at the text, I think we really should be consistent in using the hostname that immediately follows http(s):// or device:.  So, I’m going to change the WF draft accordingly.
>  
> So, the end of section 3.1 now looks like this:
>  
> An alias is a URI that is different from the “subject” URI that identifies the same entity.  In the above example, there is one “http” alias returned, though there might have been more than one.  Had the “http:” URI shown as an alias been used to query for information about Bob, the query would have appeared as:
>  
>   GET /.well-known/webfinger?
>            resource=http%3A%2F%2Fwww.example.com%2F~bob%2F HTTP/1.1
>   Host: www.example.com
>  
> Note that the host queried changed in this example, since the URI refers to a different host.  Either this host would provide a response, or it would redirect the client to another host (e.g., example.com).  Either way, the response would have been substantially the same, with the subject and alias information changed as necessary.  Other information, such as the expiration time might also change, but the set of link relations and properties would be the same with either response.
>  
> I also put “p1.example.com” as the host for the device: URI.  I do think the particular host to query is something we’ll have to take up on a URI-by-URI basis, but a very logical assumption with no other guidance is to query the host that is in the “hostname” position of the URI (if there is one).
>  
> For URIs like “tel”, the WF client would just have to be provisioned to know where to go query.
>  
> Paul
>  
> From: webfinger-bounces@ietf.org [mailto:webfinger-bounces@ietf.org] On Behalf Of Paul E. Jones
> Sent: Saturday, December 22, 2012 12:26 AM
> To: 'nov matake'
> Cc: webfinger@ietf.org
> Subject: Re: [webfinger] Question about device info discovery example.
>  
> Nov,
>  
> The host to query for the acct URI should be the host portion following the @.  For example, if one’s email ID is “user@nc.example.com” then the host to be queried would be nc.example.com.  That would be true for mailto, also.
>  
> For http(s): URIs like “http://www.example.com/some/path/”, there are one of two possibilities.  In the examples, I’ve suggested that to one would query the host “example.com”.  However, it probably isn’t the right place.  In the case of an http: URI, perhaps queries should be directed to the host itself (in this case www.example.com).  We need to answer that question: do we direct queries to the parent “host” (as I have it in the examples) or to the named host in the URI?
>  
> Paul
>  
> From: nov matake [mailto:matake@gmail.com] 
> Sent: Saturday, December 22, 2012 12:10 AM
> To: Paul E. Jones
> Cc: webfinger@ietf.org
> Subject: Re: [webfinger] Question about device info discovery example.
>  
> OK,
>  
> Then basically webfinger clients MUST use the host of resource parameter (at least when using acct, mailto, http and https schema),
> but extension spec MAY define another rule and in that case, client MUST follow the extension's rule.
>  
> Is it right?
>  
> Or webfinger itself doesn't specify anything for host usage?
> (It just define path "/.well-known/webfinger" and schema "https", but not host?)
>  
> On 2012/12/22, at 13:57, Paul E. Jones <paulej@packetizer.com> wrote:
>  
> 
> Nov,
>  
> Keep in mind that this is an entirely fictional example.  There isn’t even a URI scheme called “device”.
>  
> The answer to your question would come from a document (if it existed, but does not) that describes the “device” URI and how to use it within the context of WebFinger.
>  
> My thinking when I wrote this is that there are named devices on the network and one would query the parent domain to learn about the device.  The parent in this case beingexample.com.  It might be that there is a designated host that serves as the device info server called “devices.example.com” to which all queries are directed.  In any case, this is completely unspecified and the example is there only to illustrate the range of use for WebFinger.  It should not be viewed in any way as proper usage, though.
>  
> Paul
>  
> From: webfinger-bounces@ietf.org [mailto:webfinger-bounces@ietf.org] On Behalf Of nov matake
> Sent: Friday, December 21, 2012 11:40 PM
> To: webfinger@ietf.org
> Subject: [webfinger] Question about device info discovery example.
>  
> Hi all,
> 
> I'm new to this ML.
> 
> I'm writing a ruby webfinger library.
> https://rubygems.org/gems/webfinger
> 
> After reading usecases in section 3, I have a question.
> 
> In the device info discovery example in section 3.4, resource is "device:p1.example.com" but the host of discovery endpoint is "example.com", not "p1.example.com".
> Is there any reason why these hosts are different?
> How did the client decide the host of the discovery endpoint from resource URI?
> 
> Thanks
> 
> Nov Matake