Re: [hybi] [whatwg] HttpOnly cookie for WebSocket?

Wenbo Zhu <wenboz@google.com> Thu, 28 January 2010 11:05 UTC

Return-Path: <wenboz@google.com>
X-Original-To: hybi@core3.amsl.com
Delivered-To: hybi@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id CD82C3A68C5 for <hybi@core3.amsl.com>; Thu, 28 Jan 2010 03:05:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.676
X-Spam-Level:
X-Spam-Status: No, score=-101.676 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, MIME_8BIT_HEADER=0.3, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Bd0yoEKms1zN for <hybi@core3.amsl.com>; Thu, 28 Jan 2010 03:05:31 -0800 (PST)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by core3.amsl.com (Postfix) with ESMTP id 0A1753A67B4 for <hybi@ietf.org>; Thu, 28 Jan 2010 03:05:30 -0800 (PST)
Received: from wpaz29.hot.corp.google.com (wpaz29.hot.corp.google.com [172.24.198.93]) by smtp-out.google.com with ESMTP id o0SB5mXX021039 for <hybi@ietf.org>; Thu, 28 Jan 2010 03:05:48 -0800
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1264676748; bh=v7i/y60l7ejlzbsJbuhA8ia7e+I=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=cwpnxCsBQP0cuI/PF1k3WhLs4z+DKeEbI09COVNLs9mavMvqisCi2UbfWyRLuiUDz CXp2fDneowZ8HmP5oWM4Q==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:x-system-of-record; b=KZ/+aYU8cZaHDwCdpuwm8uWiYKurI/XrIMIrCJElLVTdZu10GmtVynv/eY4Fvu8Sb ngoWdVU+tEG9NJ3u/wZew==
Received: from pxi35 (pxi35.prod.google.com [10.243.27.35]) by wpaz29.hot.corp.google.com with ESMTP id o0SB5lRN021171 for <hybi@ietf.org>; Thu, 28 Jan 2010 03:05:47 -0800
Received: by pxi35 with SMTP id 35so190028pxi.18 for <hybi@ietf.org>; Thu, 28 Jan 2010 03:05:46 -0800 (PST)
MIME-Version: 1.0
Received: by 10.142.74.16 with SMTP id w16mr383316wfa.22.1264676746762; Thu, 28 Jan 2010 03:05:46 -0800 (PST)
In-Reply-To: <de17d48e1001280012i2657b587i83cda30f50013e6b@mail.gmail.com>
References: <de17d48e1001280012i2657b587i83cda30f50013e6b@mail.gmail.com>
Date: Thu, 28 Jan 2010 03:05:46 -0800
Message-ID: <83c4e7ff1001280305t4a2d9c3br7649303eeadd2206@mail.gmail.com>
From: Wenbo Zhu <wenboz@google.com>
To: "Fumitoshi Ukai (鵜飼文敏)" <ukai@chromium.org>
Content-Type: multipart/alternative; boundary="001636e90b7a3f1a66047e378028"
X-System-Of-Record: true
Cc: whatwg@lists.whatwg.org, hybi@ietf.org
Subject: Re: [hybi] [whatwg] HttpOnly cookie for WebSocket?
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 28 Jan 2010 11:05:31 -0000

On Thu, Jan 28, 2010 at 12:12 AM, Fumitoshi Ukai (鵜飼文敏)
<ukai@chromium.org>wrote:

> May/Should WebSocket use HttpOnly cookie while Handshaking?

WebSocket is a "stateful" protocol, and its cookie support is only
applicable in interacting with the HTTP context  .. and therefore the spec
should simply refer to what's specified for HTTP for clarification ...

- Wenbo

I think it would be useful to use HttpOnly cookie on WebSocket so that we
> could authenticate the WebSocket connection by the auth token cookie which
> might be HttpOnly for security reason.
>
> http://www.ietf.org/id/draft-ietf-httpstate-cookie-02.txt
>
> --
> ukai
>
>