[OAUTH-WG] Redirection in authorization code flow: GET vs POST
Josh Mandel <jmandel@gmail.com> Fri, 11 August 2017 20:00 UTC
Return-Path: <jmandel@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 BC8B8132398
for <oauth@ietfa.amsl.com>; Fri, 11 Aug 2017 13:00:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5
tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001,
RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001]
autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44])
by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id iucaC8_ZaGeD for <oauth@ietfa.amsl.com>;
Fri, 11 Aug 2017 13:00:33 -0700 (PDT)
Received: from mail-wm0-x236.google.com (mail-wm0-x236.google.com
[IPv6:2a00:1450:400c:c09::236])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by ietfa.amsl.com (Postfix) with ESMTPS id 16E13132422
for <oauth@ietf.org>; Fri, 11 Aug 2017 13:00:33 -0700 (PDT)
Received: by mail-wm0-x236.google.com with SMTP id i66so63560wmg.0
for <oauth@ietf.org>; Fri, 11 Aug 2017 13:00:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:from:date:message-id:subject:to;
bh=euvR1FHIXYFI4h+NUA2AcWFqQsSKhJABZE2miwUKKSU=;
b=qwzfBz7DN2BbvHAeRYQSxJpSANCImSSzNFMpLYj1dk14/InCho0ltD6gdBuC0zn18z
z8473YX/FqdEsYiNDoZoR94MlPWf7Jkil+Dn/XzgnmFKEZP7ZeptBUZfnPdHfuQKyJs5
bMsl6GARoqnZJSHmqpM5KAti1FlCCbrbFEn+CbtpUZharm5Ph+uvyHUtOt1/ZqquYKcu
LGKoJeY+o/0NqloudVlr7INsG6HDhwtXxrNv0gBMPRRmCD3ylumf+PSYYNk9Iyk4rG16
RPVCRcG9qO0bfwhGevbj4+Itwh3dbX18RzM0eKZMoUJSJKt+ETi6Z8y2BHngSzf8W1xa
7sRw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
bh=euvR1FHIXYFI4h+NUA2AcWFqQsSKhJABZE2miwUKKSU=;
b=Nj88oEc4LtFyJk16RcZHNbZoaXATYGJriB1u32J/7bjRBw9vsFNE74++Tf3GCDGcs8
08S+mCAuAeA84ZhFY8HKWjN38OYvbfE1AUqLB3eJcj8pdrjL50F41/esU1riU6tnXP+i
yIzgQhaZigYBPCATLSbgpGqBRzMWgMe6H7ac2B8xJMt4qVkMdZv2xaGVOxQ0kECbGpWN
/kHuNK/Lowpm0ooEJFxZfJ/SRm1BlW2lH9LpSewWK5IN8i7E89QXpuNwmBMbh4Mm4K00
mpF34NqdptcM9X39JtEuivu7Ya9RsmS0XlEFlVcIxeVJj8BwsHxUAW+imJ+JAcEK+r3n
c7Pg==
X-Gm-Message-State: AHYfb5gi1lozh0Z08NhHg1bXMVkrAxYbbtAxOqcdDK0KxPkDZuEOxqYu
WhUEdCxCNyHV84ClkxiBTcm5Ua7EF/6jyE0=
X-Received: by 10.80.162.133 with SMTP id 5mr16758765edm.116.1502481631388;
Fri, 11 Aug 2017 13:00:31 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.80.135.83 with HTTP; Fri, 11 Aug 2017 13:00:10 -0700 (PDT)
From: Josh Mandel <jmandel@gmail.com>
Date: Fri, 11 Aug 2017 16:00:10 -0400
Message-ID: <CANSMLKFFGitCa6f5bqR=Ks-kqf_t=3poFwCMWTtJ=MyvNKUL3A@mail.gmail.com>
To: "oauth@ietf.org WG" <oauth@ietf.org>
Content-Type: multipart/alternative; boundary="94eb2c0d98f2ebaca305567fc301"
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/LmB1qwtUHVwliSDg5vL71BCuiPU>
Subject: [OAUTH-WG] Redirection in authorization code flow: GET vs POST
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.22
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: <https://mailarchive.ietf.org/arch/browse/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: Fri, 11 Aug 2017 20:00:36 -0000
Hi All, I've just encountered a server that performs a redirect (back to the client's redirect_uri) via POST instead of GET. This was surprising behavior to me and broke my client implementation — but citing chapter and verse, the server developer pointed out that https://tools.ietf.org/html/rfc6749#section-1.7 says While the examples in this specification show the use of the HTTP 302 > status code, any other method available via the user-agent to accomplish > this redirection is allowed and is considered to be an implementation > detail. Is triggering a POST-based redirect (e.g. with this technique <https://gist.github.com/jmandel/4704d1efed8578a67a6f9b600ffd0c63)>) to the redirect_url (including url query parameters for state and code) indeed considered a "method available via the user-agent to accomplish this redirection"? In other words, should a well-behaved OAuth client be prepared to receive GETs as well as POSTs to its redirect_uri? If so, what would be the considerations for a server choosing between GET and POST? Best, Josh
- [OAUTH-WG] Redirection in authorization code flow… Josh Mandel
- Re: [OAUTH-WG] Redirection in authorization code … Josh Mandel
- Re: [OAUTH-WG] Redirection in authorization code … Jim Manico
- Re: [OAUTH-WG] Redirection in authorization code … John Bradley
- Re: [OAUTH-WG] Redirection in authorization code … Jim Manico
- Re: [OAUTH-WG] Redirection in authorization code … John Bradley
- Re: [OAUTH-WG] Redirection in authorization code … Jim Manico
- Re: [OAUTH-WG] Redirection in authorization code … Thomas Broyer
- Re: [OAUTH-WG] Redirection in authorization code … Jim Manico