Re: [OAUTH-WG] Extra "Authorization: Basic" lines in examples

Bob Van Zant <bob@veznat.com> Tue, 26 July 2011 05:02 UTC

Return-Path: <bigbadbob0@gmail.com>
X-Original-To: oauth@ietfa.amsl.com
Delivered-To: oauth@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D222621F8ABE for <oauth@ietfa.amsl.com>; Mon, 25 Jul 2011 22:02:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.93
X-Spam-Level:
X-Spam-Status: No, score=-2.93 tagged_above=-999 required=5 tests=[AWL=0.047, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, 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 b3wwVPYFvI+w for <oauth@ietfa.amsl.com>; Mon, 25 Jul 2011 22:02:07 -0700 (PDT)
Received: from mail-qy0-f179.google.com (mail-qy0-f179.google.com [209.85.216.179]) by ietfa.amsl.com (Postfix) with ESMTP id 43B2E21F8A70 for <oauth@ietf.org>; Mon, 25 Jul 2011 22:02:07 -0700 (PDT)
Received: by qyk29 with SMTP id 29so45310qyk.10 for <oauth@ietf.org>; Mon, 25 Jul 2011 22:02:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=oAhjaKnzgqlz2TsKb3e7Jbnw1eSqv1+Is26fvwPnh7M=; b=TCAVOm8bEg3q83PZHws9pbKotyoc9jxXJnLNGw+i0nI/QzK59Aj4n4paCFBBFnqfC+ znDIUyk6vPog/3qfxEXIcKw+Cja2G0/BF2T+QIbNZl9hl1bWv+zoQ/fP7LBSrly0VMGx CwcMivBx3wzmjw8lIqPoe1zeGoyqatI0IIeIY=
MIME-Version: 1.0
Received: by 10.229.7.3 with SMTP id b3mr3912296qcb.194.1311656526530; Mon, 25 Jul 2011 22:02:06 -0700 (PDT)
Sender: bigbadbob0@gmail.com
Received: by 10.229.187.136 with HTTP; Mon, 25 Jul 2011 22:02:06 -0700 (PDT)
In-Reply-To: <4E1F6AAD24975D4BA5B16804296739434985C1B5@TK5EX14MBXC207.redmond.corp.microsoft.com>
References: <4E1F6AAD24975D4BA5B16804296739434985C1B5@TK5EX14MBXC207.redmond.corp.microsoft.com>
Date: Mon, 25 Jul 2011 22:02:06 -0700
X-Google-Sender-Auth: NLyoEJq0dinp2IU8bSjo0MojoqI
Message-ID: <CADrOfL+oPmtiitFczMPQajKu0cLtU0BovW5V6b7QOAGvBxbd6Q@mail.gmail.com>
From: Bob Van Zant <bob@veznat.com>
To: Mike Jones <Michael.Jones@microsoft.com>
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: quoted-printable
Cc: "oauth@ietf.org" <oauth@ietf.org>
Subject: Re: [OAUTH-WG] Extra "Authorization: Basic" lines in examples
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: OAUTH WG <oauth.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/oauth>, <mailto:oauth-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/oauth>
List-Post: <mailto:oauth@ietf.org>
List-Help: <mailto:oauth-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/oauth>, <mailto:oauth-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 26 Jul 2011 05:02:07 -0000

The Authorization header in those examples is authorizing the client.
In 4.1.3 the /token URI requires HTTP basic authorization to access.

Section 2.4 talks about this more.

-Bob


On Mon, Jul 25, 2011 at 9:27 PM, Mike Jones <Michael.Jones@microsoft.com> wrote:
> In sections 4.1.3, 4.3.2, 4.4.2, and 6 of draft -20, the examples contain
> both the line “Authorization: Basic czZCaGRSa3F0MzpnWDFmQmF0M2JW” and
> credentials in the post body.  For instance, the example from 4.3.2 is:
>
>
>
>      POST /token HTTP/1.1
>
>      Host: server.example.com
>
>      Authorization: Basic czZCaGRSa3F0MzpnWDFmQmF0M2JW
>
>      Content-Type: application/x-www-form-urlencoded;charset=UTF-8
>
>
>
>      grant_type=password&username=johndoe&password=A3ddj3w
>
>
>
> I believe that the “Authorization: Basic czZCaGRSa3F0MzpnWDFmQmF0M2JW” line
> should be deleted from all of these examples, as you either use Basic or
> credentials in the post body, but not both.
>
>
>
>                                                             Thanks,
>
>                                                             -- Mike
>
>
>
> _______________________________________________
> OAuth mailing list
> OAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/oauth
>
>