Return-Path: <prabath@wso2.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 346DE21F8842 for <oauth@ietfa.amsl.com>;
 Sun, 20 Jan 2013 23:57:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.489
X-Spam-Level: 
X-Spam-Status: No, score=-0.489 tagged_above=-999 required=5 tests=[AWL=0.037,
 BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001,
 MIME_CHARSET_FARAWAY=2.45, 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 nD5Fr32ybvAz for
 <oauth@ietfa.amsl.com>; Sun, 20 Jan 2013 23:57:27 -0800 (PST)
Received: from mail-ea0-f170.google.com (mail-ea0-f170.google.com
 [209.85.215.170]) by ietfa.amsl.com (Postfix) with ESMTP id A3D9421F8841 for
 <oauth@ietf.org>; Sun, 20 Jan 2013 23:57:26 -0800 (PST)
Received: by mail-ea0-f170.google.com with SMTP id a11so2279391eaa.1 for
 <oauth@ietf.org>; Sun, 20 Jan 2013 23:57:25 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
 s=20120113;
 h=mime-version:x-received:in-reply-to:references:date:message-id
 :subject:from:to:cc:content-type:x-gm-message-state;
 bh=1XRKZ/MPiuRkxM6YLbYgWK3b0zv/XVdoe5KZoz2/dCw=;
 b=Penq6GauWl+d2fx8IN7TfEuPT5W+lnZHIrFPuC0ofcK57v06qgUlehGWAqluxI7G/C
 R5hZUagHi2tcuJ3uYuFQ3YLPDq1w8HLqD7b97yqwCjWfLu3JtkKYW53chGaCVj+o3isM
 N69JAwxF5SGzIFpbZHwZmsBH03qSMnrsGA1iVMNwHCW/KD0cmeq2OySbKMWONNPn2VrJ
 nAj0i/Lf7+2fBVHH1M8/976V8R/GfHh/+pjXF8Ztv4VaszOLVVuKGlgVlJsL6ypAHxc6
 D1WvfNg2GyuqeAPubPEHJAxzcu8hvrfC4V3OcNT8ihd7sfq+iOwN8tztOi5mgJNz/kgl P0aQ==
MIME-Version: 1.0
X-Received: by 10.14.0.133 with SMTP id 5mr57417989eeb.29.1358755045406;
 Sun, 20 Jan 2013 23:57:25 -0800 (PST)
Received: by 10.223.194.4 with HTTP; Sun, 20 Jan 2013 23:57:25 -0800 (PST)
In-Reply-To: <OF9A0DD14D.08A7A28E-ON48257AFA.00296603-48257AFA.0029EA37@zte.com.cn>
References: <CAJV9qO_b7WsgDSEG7N52TjOGKMPSRy8+xFWDwux9e_S5sUQj3A@mail.gmail.com>
 <OF9A0DD14D.08A7A28E-ON48257AFA.00296603-48257AFA.0029EA37@zte.com.cn>
Date: Mon, 21 Jan 2013 13:27:25 +0530
Message-ID: <CAJV9qO-eitfGOVeAQZWKuVgFDRsyS1FUhuu5rTw689fuX=OngQ@mail.gmail.com>
From: Prabath Siriwardena <prabath@wso2.com>
To: zhou.sujing@zte.com.cn
Content-Type: multipart/alternative; boundary=047d7b66fef3d1780004d3c7cf77
X-Gm-Message-State: ALoCoQkt4wfpNbGqvjCnMcEh3cyKJQMZEQmPofKHBXUSFgvH+yh1K6Z6UR3RVGvMGJPCqJRjUMMs
Cc: "oauth@ietf.org WG" <oauth@ietf.org>
Subject: Re: [OAUTH-WG] Client cannot specify the token type it needs
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: Mon, 21 Jan 2013 07:57:28 -0000

--047d7b66fef3d1780004d3c7cf77
Content-Type: text/plain; charset=GB2312
Content-Transfer-Encoding: quoted-printable

I am not objecting that RS should define it's requirements...  and RS
should be able to do it by each resource... So ideally RS may have  away to
express that in a WADL and we need to have a standard mechanism established
for communication between RS and AS.

In WS-Trust - SP can declare it's token requirements via WS-SecurityPolicy,
in WSDL. And client reads the WSDL and identify the token requirements.
Then based on those requirements, client talks to the STS and gets the
token.

Thanks & regards,
-Prabath

On Mon, Jan 21, 2013 at 1:07 PM, <zhou.sujing@zte.com.cn> wrote:

>
> Prabath Siriwardena <prabath@wso2.com> =D0=B4=D3=DA 2013-01-21 15:27:57:
>
>
> > I guess that is a pattern used many scenarios. Requesting client can
> > suggest - but its up to the AS to honor it or not...
>
>
> Not exactly. For example, RS supports two token types, one is bear token,
> another is holer-of-key which is assumed more secure than the first one.
> RS realy wants the seconde type, but =A3=A8a dishonest=A3=A9 client, alwa=
ys choosing
> the weakest, requests the first one.
> what is the meaning for client to specify the token type?
>
> >
> > Thanks & regards,
> > -prabath
>
> > On Mon, Jan 21, 2013 at 12:43 PM, <zhou.sujing@zte.com.cn> wrote:
> >
> > William Mills <wmills_92105@yahoo.com> =D0=B4=D3=DA 2013-01-21 13:44:45=
:
> >
> >
> > > Not a problem for the client to request a type, but it may not get it=
.
> >
> > I don't object client requesting a type, but I think it is
> > meaningful only when the requested type is specified by a RS,
> > and client just relay that request to AS.
> >
> > >
> > > From: "zhou.sujing@zte.com.cn" <zhou.sujing@zte.com.cn>
> > > To: Prabath Siriwardena <prabath@wso2.com>
> > > Cc: "oauth@ietf.org WG" <oauth@ietf.org>; William Mills
> > > <wmills_92105@yahoo.com>
> > > Sent: Sunday, January 20, 2013 9:38 PM
> > > Subject: Re: Re: Re: [OAUTH-WG] Client cannot specify the token
> > type it needs
> > >
> > >
> > > Well, if RS could specify token type, then Client could transfer it t=
o
> AS,
> > > I think, but it is not a good idea for client itself to specify the
> > > token type.
> > >
> > >
> > > Prabath Siriwardena <prabath@wso2.com> =D0=B4=D3=DA 2013-01-21 13:29:=
05:
> > >
> > > > Think about a distributed setup. You have single Authorization
> > > > Server and multiple Resource Servers.
> > > >
> > > > Although OAuth nicely decouples AS from RS - AFAIK there is no
> > > > standard established for communication betweens AS and RS - how to
> > > > declare metadata between those.
> > > >
> > > > Also there can be Resource Servers which support multiple token
> > > > types. It could vary on APIs hosted in a given RS.
> > > >
> > > > Thanks & regards,
> > > > -Prabath
> > > >
> > > > On Mon, Jan 21, 2013 at 10:48 AM, <zhou.sujing@zte.com.cn> wrote:
> > > >
> > > > The token type shoulbe decided by resource server, which consumes
> > > > access token.
> > > > Client just re-tell the requested token type to AS.
> > > > Client should not specify the token type.
> > > >
> > > >
> > > > oauth-bounces@ietf.org =D0=B4=D3=DA 2013-01-21 13:08:39:
> > > >
> > > >
> > > > > This is true.  It's possible for the AS to vary it's behavior on
> > > > > scope name, but it's presumed the AS and RS have an agreement of
> > > > > what token type is in play.  Likely a good extension to the spec.
> > > >
> > > > >
> > > > > From: Prabath Siriwardena <prabath@wso2.com>
> > > > > To: "oauth@ietf.org WG" <oauth@ietf.org>
> > > > > Sent: Sunday, January 20, 2013 7:28 PM
> > > > > Subject: [OAUTH-WG] Client cannot specify the token type it needs
> > > >
> > > > >
> > > > > Although token type is extensible according to the OAuth core
> > > > > specification - it is fully governed by the Authorization Server.
> > > > >
> > > > > There can be a case where a single AS supports multiple token
> types
> > > > > based on client request.
> > > > >
> > > > > But currently we don't have a way the client can specify (or at
> > > > > least suggest) which token type it needs in the OAuth access
> > > tokenrequest ?
> > > > >
> > > > > Is this behavior intentional ? or am I missing something...
> > > > >
> > > > > Thanks & Regards,
> > > > > Prabath
> > > > >
> > > > > Mobile : +94 71 809 6732
> > > > >
> > > > > http://blog.facilelogin.com
> > > > > http://RampartFAQ.com
> > > > >
> > > > > _______________________________________________
> > > > > OAuth mailing list
> > > > > OAuth@ietf.org
> > > > > https://www.ietf.org/mailman/listinfo/oauth
> > > > >
> > > > > _______________________________________________
> > > > > OAuth mailing list
> > > > > OAuth@ietf.org
> > > > > https://www.ietf.org/mailman/listinfo/oauth
> > > >
> > >
> > > >
> > > > --
> > > > Thanks & Regards,
> > > > Prabath
> > > >
> > > > Mobile : +94 71 809 6732
> > > >
> > > > http://blog.facilelogin.com
> > > > http://RampartFAQ.com
> > >
> >
>
> >
> > --
> > Thanks & Regards,
> > Prabath
> >
> > Mobile : +94 71 809 6732
> >
> > http://blog.facilelogin.com
> > http://RampartFAQ.com
>



--=20
Thanks & Regards,
Prabath

Mobile : +94 71 809 6732

http://blog.facilelogin.com
http://RampartFAQ.com

--047d7b66fef3d1780004d3c7cf77
Content-Type: text/html; charset=GB2312
Content-Transfer-Encoding: quoted-printable

I am not objecting that RS should define it&#39;s requirements... &nbsp;and=
 RS should be able to do it by each resource... So ideally RS may have &nbs=
p;away to express that in a WADL and we need to have a standard mechanism e=
stablished for communication between RS and AS.<div>
<br></div><div>In WS-Trust - SP can declare it&#39;s token requirements via=
 WS-SecurityPolicy, in WSDL. And client reads the WSDL and identify the tok=
en requirements. Then based on those requirements, client talks to the STS =
and gets the token.</div>
<div><br></div><div>Thanks &amp; regards,</div><div>-Prabath&nbsp;<div><br>=
<div class=3D"gmail_quote">On Mon, Jan 21, 2013 at 1:07 PM,  <span dir=3D"l=
tr">&lt;<a href=3D"mailto:zhou.sujing@zte.com.cn" target=3D"_blank">zhou.su=
jing@zte.com.cn</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
<br><tt><font>Prabath Siriwardena &lt;<a href=3D"mailto:prabath@wso2.com" t=
arget=3D"_blank">prabath@wso2.com</a>&gt; =D0=B4=D3=DA
2013-01-21 15:27:57:<div class=3D"im"><br>
<br>
&gt; I guess that is a pattern used many scenarios. Requesting client can<b=
r>
&gt; suggest - but its up to the AS to honor it or not...</div></font></tt>
<br>
<br><tt><font>Not exactly. For example, RS supports two token types,
one is bear token, another is holer-of-key which is assumed more secure
than the first one.</font></tt>
<br><tt><font>RS realy wants the seconde type, but =A3=A8a dishonest=A3=A9
client, always choosing the weakest, requests the first one. </font></tt>
<br><tt><font>what is the meaning for client to specify the token
type? </font></tt>
<br><div class=3D"HOEnZb"><div class=3D"h5">
<br><tt><font>&gt; <br>
&gt; Thanks &amp; regards,</font></tt>
<br><tt><font>&gt; -prabath<br>
</font></tt>
<br><tt><font>&gt; On Mon, Jan 21, 2013 at 12:43 PM, &lt;<a href=3D"mailto:=
zhou.sujing@zte.com.cn" target=3D"_blank">zhou.sujing@zte.com.cn</a>&gt;
wrote:</font></tt>
<br><tt><font>&gt; <br>
&gt; William Mills &lt;<a href=3D"mailto:wmills_92105@yahoo.com" target=3D"=
_blank">wmills_92105@yahoo.com</a>&gt; =D0=B4=D3=DA 2013-01-21 13:44:45:</f=
ont></tt>
<br><tt><font>&gt; <br>
&gt; <br>
&gt; &gt; Not a problem for the client to request a type, but it may not
get it.</font></tt>
<br><tt><font>&gt; <br>
&gt; I don&#39;t object client requesting a type, but I think it is <br>
&gt; meaningful only when the requested type is specified by a RS, <br>
&gt; and client just relay that request to AS. </font></tt>
<br><tt><font>&gt; <br>
&gt; &gt; <br>
&gt; &gt; From: &quot;<a href=3D"mailto:zhou.sujing@zte.com.cn" target=3D"_=
blank">zhou.sujing@zte.com.cn</a>&quot; &lt;<a href=3D"mailto:zhou.sujing@z=
te.com.cn" target=3D"_blank">zhou.sujing@zte.com.cn</a>&gt;<br>
&gt; &gt; To: Prabath Siriwardena &lt;<a href=3D"mailto:prabath@wso2.com" t=
arget=3D"_blank">prabath@wso2.com</a>&gt; <br>
&gt; &gt; Cc: &quot;<a href=3D"mailto:oauth@ietf.org" target=3D"_blank">oau=
th@ietf.org</a> WG&quot; &lt;<a href=3D"mailto:oauth@ietf.org" target=3D"_b=
lank">oauth@ietf.org</a>&gt;; William
Mills <br>
&gt; &gt; &lt;<a href=3D"mailto:wmills_92105@yahoo.com" target=3D"_blank">w=
mills_92105@yahoo.com</a>&gt; <br>
&gt; &gt; Sent: Sunday, January 20, 2013 9:38 PM<br>
&gt; &gt; Subject: Re: Re: Re: [OAUTH-WG] Client cannot specify the token
<br>
&gt; type it needs <br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; Well, if RS could specify token type, then Client could transfer
it to AS, <br>
&gt; &gt; I think, but it is not a good idea for client itself to specify
the <br>
&gt; &gt; token type. <br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; Prabath Siriwardena &lt;<a href=3D"mailto:prabath@wso2.com" targe=
t=3D"_blank">prabath@wso2.com</a>&gt; =D0=B4=D3=DA 2013-01-21
13:29:05:<br>
&gt; &gt; <br>
&gt; &gt; &gt; Think about a distributed setup. You have single Authorizati=
on
<br>
&gt; &gt; &gt; Server and multiple Resource Servers. <br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; Although OAuth nicely decouples AS from RS - AFAIK there
is no <br>
&gt; &gt; &gt; standard established for communication betweens AS and RS
- how to <br>
&gt; &gt; &gt; declare metadata between those. <br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; Also there can be Resource Servers which support multiple
token <br>
&gt; &gt; &gt; types. It could vary on APIs hosted in a given RS. <br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; Thanks &amp; regards, <br>
&gt; &gt; &gt; -Prabath <br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; On Mon, Jan 21, 2013 at 10:48 AM, &lt;<a href=3D"mailto:zhou=
.sujing@zte.com.cn" target=3D"_blank">zhou.sujing@zte.com.cn</a>&gt;
wrote: <br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; The token type shoulbe decided by resource server, which
consumes <br>
&gt; &gt; &gt; access token. <br>
&gt; &gt; &gt; Client just re-tell the requested token type to AS. <br>
&gt; &gt; &gt; Client should not specify the token type. <br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; <a href=3D"mailto:oauth-bounces@ietf.org" target=3D"_blank">=
oauth-bounces@ietf.org</a> =D0=B4=D3=DA 2013-01-21 13:08:39: <br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; This is true. &nbsp;It&#39;s possible for the AS to var=
y
it&#39;s behavior on <br>
&gt; &gt; &gt; &gt; scope name, but it&#39;s presumed the AS and RS have an
agreement of <br>
&gt; &gt; &gt; &gt; what token type is in play. &nbsp;Likely a good extensi=
on
to the spec. <br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; From: Prabath Siriwardena &lt;<a href=3D"mailto:prabath=
@wso2.com" target=3D"_blank">prabath@wso2.com</a>&gt;<br>
&gt; &gt; &gt; &gt; To: &quot;<a href=3D"mailto:oauth@ietf.org" target=3D"_=
blank">oauth@ietf.org</a> WG&quot; &lt;<a href=3D"mailto:oauth@ietf.org" ta=
rget=3D"_blank">oauth@ietf.org</a>&gt;
<br>
&gt; &gt; &gt; &gt; Sent: Sunday, January 20, 2013 7:28 PM<br>
&gt; &gt; &gt; &gt; Subject: [OAUTH-WG] Client cannot specify the token
type it needs <br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; Although token type is extensible according to the
OAuth core <br>
&gt; &gt; &gt; &gt; specification - it is fully governed by the Authorizati=
on
Server. <br>
&gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; There can be a case where a single AS supports multiple
token types <br>
&gt; &gt; &gt; &gt; based on client request. <br>
&gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; But currently we don&#39;t have a way the client can sp=
ecify
(or at <br>
&gt; &gt; &gt; &gt; least suggest) which token type it needs in the OAuth
access <br>
&gt; &gt; tokenrequest ?<br>
&gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; Is this behavior intentional ? or am I missing somethin=
g...
<br>
&gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; Thanks &amp; Regards,<br>
&gt; &gt; &gt; &gt; Prabath <br>
&gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; Mobile : <a href=3D"tel:%2B94%2071%20809%206732" value=
=3D"+94718096732" target=3D"_blank">+94 71 809 6732</a> <br>
&gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; <a href=3D"http://blog.facilelogin.com" target=3D"_blan=
k">http://blog.facilelogin.com</a><br>
&gt; &gt; &gt; &gt; <a href=3D"http://RampartFAQ.com" target=3D"_blank">htt=
p://RampartFAQ.com</a> <br>
&gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; &gt; OAuth mailing list<br>
&gt; &gt; &gt; &gt; <a href=3D"mailto:OAuth@ietf.org" target=3D"_blank">OAu=
th@ietf.org</a><br>
&gt; &gt; &gt; &gt; <a href=3D"https://www.ietf.org/mailman/listinfo/oauth"=
 target=3D"_blank">https://www.ietf.org/mailman/listinfo/oauth</a><br>
&gt; &gt; &gt; &gt; <br>
&gt; &gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; &gt; OAuth mailing list<br>
&gt; &gt; &gt; &gt; <a href=3D"mailto:OAuth@ietf.org" target=3D"_blank">OAu=
th@ietf.org</a><br>
&gt; &gt; &gt; &gt; <a href=3D"https://www.ietf.org/mailman/listinfo/oauth"=
 target=3D"_blank">https://www.ietf.org/mailman/listinfo/oauth</a> <br>
&gt; &gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; -- <br>
&gt; &gt; &gt; Thanks &amp; Regards,<br>
&gt; &gt; &gt; Prabath <br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; Mobile : <a href=3D"tel:%2B94%2071%20809%206732" value=3D"+9=
4718096732" target=3D"_blank">+94 71 809 6732</a> <br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; <a href=3D"http://blog.facilelogin.com" target=3D"_blank">ht=
tp://blog.facilelogin.com</a><br>
&gt; &gt; &gt; <a href=3D"http://RampartFAQ.com" target=3D"_blank">http://R=
ampartFAQ.com</a> <br>
&gt; &gt; </font></tt>
<br><tt><font>&gt; <br>
</font></tt>
<br><tt><font>&gt; <br>
&gt; -- <br>
&gt; Thanks &amp; Regards,<br>
&gt; Prabath</font></tt>
<br><tt><font>&gt; <br>
&gt; Mobile : <a href=3D"tel:%2B94%2071%20809%206732" value=3D"+94718096732=
" target=3D"_blank">+94 71 809 6732</a> <br>
&gt; <br>
&gt; <a href=3D"http://blog.facilelogin.com" target=3D"_blank">http://blog.=
facilelogin.com</a><br>
&gt; <a href=3D"http://RampartFAQ.com" target=3D"_blank">http://RampartFAQ.=
com</a></font></tt>
</div></div></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>=
Thanks &amp; Regards,<br>Prabath<div><br></div><div>Mobile : +94 71 809 673=
2&nbsp;<br><br><a href=3D"http://blog.facilelogin.com" target=3D"_blank">ht=
tp://blog.facilelogin.com</a><br>
<a href=3D"http://RampartFAQ.com" target=3D"_blank">http://RampartFAQ.com</=
a></div>
</div></div>

--047d7b66fef3d1780004d3c7cf77--
