Return-Path: <blue.ringed.octopus.guy@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 2E92F3A1924
 for <oauth@ietfa.amsl.com>; Fri, 28 Feb 2020 06:55:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.087
X-Spam-Level: 
X-Spam-Status: No, score=-2.087 tagged_above=-999 required=5
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
 DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_REMOTE_IMAGE=0.01, URIBL_BLOCKED=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 jvovHbPtLkav for <oauth@ietfa.amsl.com>;
 Fri, 28 Feb 2020 06:55:08 -0800 (PST)
Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com
 [IPv6:2a00:1450:4864:20::536])
 (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 4CACE3A0B1E
 for <oauth@ietf.org>; Fri, 28 Feb 2020 06:55:04 -0800 (PST)
Received: by mail-ed1-x536.google.com with SMTP id dm3so3690173edb.1
 for <oauth@ietf.org>; Fri, 28 Feb 2020 06:55:04 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=oLqzG0LkT9jxtKE59A0kruZ9OwZOTiX2uxvioYWJJE0=;
 b=mhzp7XgT6g7Nrs4ZvcLuItNXWOProphN04Ooi4G3FJayUjwaZpK4HQEpmuo8O9YIkV
 kmxvFW0SHMADTKEZ7KHB+hw4XKoI9vQ1GIQlAy6EB2WauUXgetjxkhti+U/zlMPn0sJS
 L10G3rOkXOXnTXcbIL8/yQCXfG6P7aVmZ8dZbf89PsgWkRebrOOyB7WVOwF7HEiF855m
 aditkIED52xytyLifdYeVAGss9NdQ9ax09zpuuQ5JEzw1pJuPaYzM27r/B/iMH0LkS2q
 mHHGkKXiJIqzghufG/WaRGjt1v/MdVZqbFA4saFE/9dn8tPoxyPVW95sSeALqCDVxbDs
 Hgug==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=oLqzG0LkT9jxtKE59A0kruZ9OwZOTiX2uxvioYWJJE0=;
 b=rYgCA5fwA6UfmIMSC9TiahjPErGyajFzkwW7XgiReriSgXPoqXdQKjvXCB9U5B31I4
 cEmXluGUZPX68VdK4y3qhdzLdQJw+aR5v2JFx2l6v1I24NOx5bbtTTOJHwOQTzEkwbuX
 7YwowxJgn1DVU4XSudU7khwmi2CdgdCz2uXuqJh2mHlAD+URCmQSqXmaWaG9i1HnV+d1
 8Qjizo5oxGVur4bbOmNFLB/YJr23fDAbI89ITewj8HSMFSkUOW9/RRBd2OoAmAAf6Ftd
 Tm/Yt0BsbOy1h0HsRsUPpmI6WzlnoogSULvUl0fyG5W9ukVuJc3fzM2gMKYsCGHSY7Ht
 Nq0w==
X-Gm-Message-State: APjAAAVipUW+yHd8eaEexg7VyVHnD+pokXRt9WRcKSj4Qz3k0SMecJBI
 BCdTpQaxHs20IMe62YhnE1New9Nc31NjXt6FfK5u6nH8hT4=
X-Google-Smtp-Source: 
 APXvYqwS6CUildrjCFyGR0MP//0PLZNWBtDQz2tS5qLQwTWyhnzbgDn33YcY1y34aqC0hnG183kXBrMqP/QDcsU7tC4=
X-Received: by 2002:aa7:d747:: with SMTP id a7mr4658223eds.82.1582901702763;
 Fri, 28 Feb 2020 06:55:02 -0800 (PST)
MIME-Version: 1.0
References: 
 <CAErhd0OLTMKxXnT-_X6DyWYUxe==gTXdcHKLjOEDTmXCUZNxrg@mail.gmail.com>
In-Reply-To: 
 <CAErhd0OLTMKxXnT-_X6DyWYUxe==gTXdcHKLjOEDTmXCUZNxrg@mail.gmail.com>
From: David Skaife <blue.ringed.octopus.guy@gmail.com>
Date: Fri, 28 Feb 2020 14:54:53 +0000
Message-ID: 
 <CAKiOsZvn1Kdr4QC_d=drToqOZ39TKcwb-u8P8PoOKnsv03pNRA@mail.gmail.com>
To: Bill Jung <bjung=40pingidentity.com@dmarc.ietf.org>
Cc: oauth@ietf.org
Content-Type: multipart/alternative; boundary="000000000000b535ba059fa405a0"
Archived-At: 
 <https://mailarchive.ietf.org/arch/msg/oauth/cfP2oBqG0Tsx3tWqWOmeEyY8CZo>
Subject: Re: [OAUTH-WG] OAuth 2.0 Token Introspection in RFC7662 : Refresh
 token?
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.29
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, 28 Feb 2020 14:55:10 -0000

--000000000000b535ba059fa405a0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi,

In additional to Bill's query, the use of the term "protected resource" in
the context of RFC7662 is quite confusing. As defined by RFC6749 (which
RFC7662 defers to for definition of the terms), the term "protected
resource" is defined as an "access-restricted resource" that a client can
request. In the context of RFC7662, it doesn't make sense for an
"access-restricted resource" to be making any requests to the introspection
endpoints - surely it is the resource server that is the intended consumer
of the introspection endpoints? This is also backed up by Section 4
(Security Considerations) of RFC7662 which reverts to using the term
"resource server" as the consumer of the introspection endpoints.
For example, in these quotes:
"However, since resource servers using token introspection rely on the
authorization
server to determine the state of a token.." and
"...the authorization server MUST determine whether or not the token can be
used at the resource server making the introspection call"

Apologies if I've misinterpreted something here, but if RFC7662 has a
different meaning for the term "protected resource" from RFC6749 then it
should be stated clearly within that document. I also agree with Bill's
observation that it doesn't make sense for a refresh token to passed into
an introspection request as a refresh token should only be accessible to
the client and the authorization server (neither of which are intended
consumers of the introspection endpoints).


Many thanks,
David Skaife

On Fri, Feb 28, 2020 at 9:59 AM Bill Jung <bjung=3D
40pingidentity.com@dmarc.ietf.org> wrote:

> Hello, hopefully I am using the right email address.
>
> Simply put, can this spec be enhanced to clarify "Who can use the
> introspection endpoint for a refresh token? A resource provider or a clie=
nt
> app or both?"
>
> RFC7662 clearly mentions that the user of introspection endpoint is a
> 'protected resource' and that makes sense for an access token. If we allo=
w
> this to client apps, it'll give unnecessary token information to them.
> However, the spec also mentions that refresh tokens can also be used
> against the endpoint.
> In case of refresh tokens, user of the endpoint should be a client app
> because refresh tokens are used by clients to get another access token.
> (Cannot imagine how/why a resource server would introspect a refresh toke=
n)
>
> Is it correct to assume that the endpoint should be allowed to client app=
s
> if they want to examine refresh token's expiry time? Then the RFC should
> clearly mention it.
>
> Thanks in advance.
>
> *<Details from the spec>*
> In https://tools.ietf.org/html/rfc7662
> In '1.  Introduction' section says,
>
>
>
> *"This specification defines a protocol that allows authorizedprotected
> resources to query the authorization server to determinethe set of metada=
ta
> for a given token that was presented to them byan OAuth 2.0 client."*
> Above makes clear that user of the endpoint is a "protected resource".
>
> And under 'token' in '2.1.  Introspection Request' section says,
>
>
> *"For refresh tokens,this is the "refresh_token" value returned from the
> token endpointas defined in OAuth 2.0 [RFC6749], Section 5.1."*
> So looks like a refresh token is allowed for this endpoint.
>
>
> <https://www.pingidentity.com>[image: Ping Identity]
> <https://www.pingidentity.com>
> Bill Jung
> Manager, Response Engineering
> bjung@pingidentity.com
> w: +1 604.697.7037
> Connect with us: [image: Glassdoor logo]
> <https://www.glassdoor.com/Overview/Working-at-Ping-Identity-EI_IE380907.=
11,24.htm> [image:
> LinkedIn logo] <https://www.linkedin.com/company/21870> [image: twitter
> logo] <https://twitter.com/pingidentity> [image: facebook logo]
> <https://www.facebook.com/pingidentitypage> [image: youtube logo]
> <https://www.youtube.com/user/PingIdentityTV> [image: Blog logo]
> <https://www.pingidentity.com/en/blog.html>
> <https://www.google.com/url?q=3Dhttps://www.pingidentity.com/content/dam/=
ping-6-2-assets/Assets/faqs/en/consumer-attitudes-post-breach-era-3375.pdf?=
id%3Db6322a80-f285-11e3-ac10-0800200c9a66&source=3Dgmail&ust=3D154169360852=
6000&usg=3DAFQjCNGBl5cPHCUAVKGZ_NnpuFj5PHGSUQ>
> <https://www.pingidentity.com/en/events/d/identify-2019.html>
> <https://www.pingidentity.com/content/dam/ping-6-2-assets/Assets/Misc/en/=
3464-consumersurvey-execsummary.pdf>
>
> *CONFIDENTIALITY NOTICE: This email may contain confidential and
> privileged material for the sole use of the intended recipient(s). Any
> review, use, distribution or disclosure by others is strictly prohibited.=
.
> If you have received this communication in error, please notify the sende=
r
> immediately by e-mail and delete the message and any file attachments fro=
m
> your computer. Thank you.*_______________________________________________
> OAuth mailing list
> OAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/oauth
>

--000000000000b535ba059fa405a0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi,<div><br></div><div>In additional to Bill&#39;s query, =
the use of the term &quot;protected resource&quot; in the context of RFC766=
2 is quite confusing. As defined by RFC6749 (which RFC7662 defers to for de=
finition=C2=A0of the terms), the term &quot;protected resource&quot; is def=
ined as an &quot;access-restricted resource&quot; that a client can request=
. In the context of RFC7662, it doesn&#39;t make sense for an &quot;access-=
restricted resource&quot; to be making any requests to the introspection en=
dpoints - surely it is the resource server that is the intended consumer of=
 the introspection endpoints? This is also backed up by Section 4 (Security=
 Considerations) of RFC7662 which reverts to using the term &quot;resource =
server&quot; as the consumer of the introspection endpoints.<br>For example=
, in these quotes:<br>&quot;<span style=3D"color:rgb(0,0,0);font-size:13.33=
33px">However, since resource servers using token introspection rely on the=
=C2=A0</span><span style=3D"color:rgb(0,0,0);font-size:13.3333px">authoriza=
tion server to determine the state of a token..&quot; and<br></span><span s=
tyle=3D"color:rgb(0,0,0);font-size:13.3333px">&quot;...</span><span style=
=3D"color:rgb(0,0,0);font-size:13.3333px">the=C2=A0</span><span style=3D"co=
lor:rgb(0,0,0);font-size:13.3333px">authorization server MUST determine whe=
ther or not the token can=C2=A0</span><span style=3D"color:rgb(0,0,0);font-=
size:13.3333px">be used at the resource server making the introspection cal=
l&quot;</span><span style=3D"color:rgb(0,0,0);font-size:13.3333px"><br></sp=
an><br>Apologies if I&#39;ve misinterpreted something here, but if RFC7662 =
has a different meaning for the term &quot;protected resource&quot; from RF=
C6749 then it should be stated clearly within that document. I also agree w=
ith Bill&#39;s observation that it doesn&#39;t make sense for a refresh tok=
en to passed into an introspection request as a refresh token should only b=
e accessible to the client and the authorization server (neither of which a=
re intended consumers of the introspection endpoints).<br><br><br></div><di=
v>Many thanks,</div><div>David Skaife</div></div><br><div class=3D"gmail_qu=
ote"><div dir=3D"ltr" class=3D"gmail_attr">On Fri, Feb 28, 2020 at 9:59 AM =
Bill Jung &lt;bjung=3D<a href=3D"mailto:40pingidentity.com@dmarc.ietf.org">=
40pingidentity.com@dmarc.ietf.org</a>&gt; wrote:<br></div><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex"><div dir=3D"ltr">Hello, hopefully I am usi=
ng the right email address.=C2=A0<div><br></div><div><div>Simply put, can t=
his spec be enhanced to clarify &quot;Who can use the introspection endpoin=
t for a refresh token? A resource provider or a client app or both?&quot;=
=C2=A0<br><br>RFC7662 clearly mentions that the user of introspection endpo=
int is a &#39;protected resource&#39; and that makes sense for an access to=
ken. If we allow this to client apps, it&#39;ll give unnecessary token info=
rmation to them.<br>However, the spec also mentions that refresh tokens can=
 also be used against the endpoint. <br>In case of refresh tokens, user of =
the endpoint should be a client app because refresh tokens are used by clie=
nts to get another access token. (Cannot imagine how/why a resource server =
would introspect a refresh token)<br><br>Is it correct to assume that the e=
ndpoint should be allowed to client apps if they want to examine refresh to=
ken&#39;s expiry time? Then the RFC should clearly mention it. <br><br>Than=
ks in advance.=C2=A0<br><br><b>&lt;Details from the spec&gt;</b><br>In <a h=
ref=3D"https://tools.ietf.org/html/rfc7662" target=3D"_blank">https://tools=
.ietf.org/html/rfc7662</a><br>In &#39;1.=C2=A0 Introduction&#39; section sa=
ys,<br><i><font color=3D"#0000ff">&quot;This specification defines a protoc=
ol that allows authorized<br>protected resources to query the authorization=
 server to determine<br>the set of metadata for a given token that was pres=
ented to them by<br>an OAuth 2.0 client.&quot;</font></i><br>Above makes cl=
ear that user of the endpoint is a &quot;protected resource&quot;. <br><br>=
And under &#39;token&#39; in &#39;2.1.=C2=A0 Introspection Request&#39; sec=
tion says,<br><i><font color=3D"#0000ff">&quot;For refresh tokens,<br>this =
is the &quot;refresh_token&quot; value returned from the token endpoint<br>=
as defined in OAuth 2.0 [RFC6749], Section 5.1.&quot;</font></i><br>So look=
s like a refresh token is allowed for this endpoint.=C2=A0</div><div><br></=
div><div><br><div><div><div dir=3D"ltr">  <div style=3D"padding:0px;margin:=
0px">    <table style=3D"border-collapse:collapse;padding:0px;margin:0px">	=
		<tbody><tr>				<td style=3D"width:113px">					<a href=3D"https://www.ping=
identity.com" target=3D"_blank"></a><a href=3D"https://www.pingidentity.com=
" target=3D"_blank"><img alt=3D"Ping Identity" src=3D"https://www.pingident=
ity.com/content/dam/pic/images/misc/signature/ping-logo.png"></a>				</td>	=
			<td>					<table>												<tbody><tr>			        <td style=3D"vertical-=
align:top">				        <span style=3D"color:rgb(230,29,60);display:inline-b=
lock;margin-bottom:3px;font-family:arial,helvetica,sans-serif;font-weight:b=
old;font-size:14px">Bill Jung</span>								<br>								<span style=3D"colo=
r:rgb(0,0,0);display:inline-block;margin-bottom:2px;font-family:arial,helve=
tica,sans-serif;font-weight:normal;font-size:14px">Manager, Response Engine=
ering</span>								<br>								<span style=3D"font-family:arial,helvetica,=
sans-serif;font-size:14px;display:inline-block;margin-bottom:3px"><a href=
=3D"mailto:bjung@pingidentity.com" target=3D"_blank">bjung@pingidentity.com=
</a></span>								<br>								<span style=3D"color:rgb(0,0,0);display:inli=
ne-block;margin-bottom:2px;font-family:arial,helvetica,sans-serif;font-weig=
ht:normal;font-size:14px">								w: +1 604.697.7037</span>								<br>				=
				<span style=3D"color:rgb(0,0,0);display:inline-block;margin-bottom:2px;=
font-family:arial,helvetica,sans-serif;font-weight:normal;font-size:14px">	=
							</span>							</td>			      </tr>					</tbody></table>				</td>			</=
tr>			<tr>				        <td colspan=3D"2">          <table style=3D"border-co=
llapse:collapse;border:none;margin:8px 0px 0px;width:100%">          	<tbod=
y><tr style=3D"height:40px;border-top:1px solid rgb(211,211,211);border-bot=
tom:1px solid rgb(211,211,211)">              <td style=3D"font-family:aria=
l,helvetica,sans-serif;font-size:14px;font-weight:bold;color:rgb(64,71,75)"=
>Connect with us: </td>              <td style=3D"padding:4px 0px 0px 20px"=
>                <a href=3D"https://www.glassdoor.com/Overview/Working-at-P=
ing-Identity-EI_IE380907.11,24.htm" style=3D"text-decoration:none;margin-ri=
ght:16px" title=3D"Ping on Glassdoor" target=3D"_blank"><img src=3D"https:/=
/www.pingidentity.com/content/dam/pic/images/misc/signature/social-glassdoo=
r.png" style=3D"border: none; margin: 0px;" alt=3D"Glassdoor logo"></a>				=
						<a href=3D"https://www.linkedin.com/company/21870" style=3D"text-deco=
ration:none;margin-right:16px" title=3D"Ping on LinkedIn" target=3D"_blank"=
><img src=3D"https://www.pingidentity.com/content/dam/pic/images/misc/signa=
ture/social-linkedin.png" style=3D"border: none; margin: 0px;" alt=3D"Linke=
dIn logo"></a>                                        <a href=3D"https://tw=
itter.com/pingidentity" style=3D"text-decoration:none;margin-right:16px" ti=
tle=3D"Ping on Twitter" target=3D"_blank"><img src=3D"https://www.pingident=
ity.com/content/dam/pic/images/misc/signature/social-twitter.png" style=3D"=
border: none; margin: 0px;" alt=3D"twitter logo"></a>										<a href=3D"h=
ttps://www.facebook.com/pingidentitypage" style=3D"text-decoration:none;mar=
gin-right:16px" title=3D"Ping on Facebook" target=3D"_blank"><img src=3D"ht=
tps://www.pingidentity.com/content/dam/pic/images/misc/signature/social-fac=
ebook.png" style=3D"border: none; margin: 0px;" alt=3D"facebook logo"></a>	=
							<a href=3D"https://www.youtube.com/user/PingIdentityTV" style=3D"tex=
t-decoration:none;margin-right:16px" title=3D"Ping on Youtube" target=3D"_b=
lank"><img src=3D"https://www.pingidentity.com/content/dam/pic/images/misc/=
signature/social-youtube.png" style=3D"border: none; margin: 0px 0px 3px;" =
alt=3D"youtube logo"></a>                                                  =
      <a href=3D"https://www.pingidentity.com/en/blog.html" style=3D"text-d=
ecoration:none;margin-right:16px" title=3D"Ping Blog" target=3D"_blank"><im=
g src=3D"https://www.pingidentity.com/content/dam/pic/images/misc/signature=
/social-blog.png" style=3D"border: none; margin: 0px;" alt=3D"Blog logo"></=
a>															</td>            </tr>          </tbody></table>				</td> =
     </tr>    </tbody></table><a href=3D"https://www.google.com/url?q=3Dhtt=
ps://www.pingidentity.com/content/dam/ping-6-2-assets/Assets/faqs/en/consum=
er-attitudes-post-breach-era-3375.pdf?id%3Db6322a80-f285-11e3-ac10-0800200c=
9a66&amp;source=3Dgmail&amp;ust=3D1541693608526000&amp;usg=3DAFQjCNGBl5cPHC=
UAVKGZ_NnpuFj5PHGSUQ" target=3D"_blank"></a><a href=3D"https://www.pingiden=
tity.com/en/events/d/identify-2019.html" target=3D"_blank"></a><a href=3D"h=
ttps://www.pingidentity.com/content/dam/ping-6-2-assets/Assets/Misc/en/3464=
-consumersurvey-execsummary.pdf" target=3D"_blank"><img src=3D"https://www.=
pingidentity.com/content/dam/ping-6-2-assets/images/misc/emailSignature/201=
9/consumersurvey-emailsignature.jpg"></a>  </div></div></div></div></div></=
div></div>

<br>
<i style=3D"margin:0px;padding:0px;border:0px;outline:0px;vertical-align:ba=
seline;background:rgb(255,255,255);font-family:proxima-nova-zendesk,system-=
ui,-apple-system,system-ui,&quot;Segoe UI&quot;,Roboto,Oxygen-Sans,Ubuntu,C=
antarell,&quot;Helvetica Neue&quot;,Arial,sans-serif;color:rgb(85,85,85)"><=
span style=3D"margin:0px;padding:0px;border:0px;outline:0px;vertical-align:=
baseline;background:transparent;font-family:proxima-nova-zendesk,system-ui,=
-apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,Roboto,Oxygen-Sans,Ub=
untu,Cantarell,&quot;Helvetica Neue&quot;,Arial,sans-serif;font-weight:600"=
><font size=3D"2">CONFIDENTIALITY NOTICE: This email may contain confidenti=
al and privileged material for the sole use of the intended recipient(s). A=
ny review, use, distribution or disclosure by others is strictly prohibited=
..=C2=A0 If you have received this communication in error, please notify th=
e sender immediately by e-mail and delete the message and any file attachme=
nts from your computer. Thank you.</font></span></i>_______________________=
________________________<br>
OAuth mailing list<br>
<a href=3D"mailto:OAuth@ietf.org" target=3D"_blank">OAuth@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/oauth" rel=3D"noreferrer" =
target=3D"_blank">https://www.ietf.org/mailman/listinfo/oauth</a><br>
</blockquote></div>

--000000000000b535ba059fa405a0--

