-
Notifications
You must be signed in to change notification settings - Fork 7
/
draft-richer-oauth-instance.xml
173 lines (151 loc) · 7.78 KB
/
draft-richer-oauth-instance.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<?xml version="1.0" encoding="US-ASCII"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd">
<?rfc toc="yes"?>
<?rfc tocompact="yes"?>
<?rfc tocdepth="3"?>
<?rfc tocindent="yes"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes"?>
<?rfc comments="yes"?>
<?rfc inline="yes"?>
<?rfc compact="yes"?>
<?rfc subcompact="no"?>
<rfc category="exp" docName="draft-richer-oauth-instance-01" ipr="trust200902">
<front>
<title abbrev="oauth-instance">OAuth Client Instance Extension</title>
<author fullname="Justin Richer" initials="J." role="editor"
surname="Richer">
<organization>The MITRE Corporation</organization>
<address>
<email>[email protected]</email>
</address>
</author>
<date day="7" month="November" year="2010" />
<abstract>
<t>This specification defines two client instance extension parameters
for OAuth 2.0 user authorization requests.</t>
</abstract>
<note title="Requirements Language">
<t>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in <xref
target="RFC2119">RFC 2119</xref>.</t>
</note>
</front>
<middle>
<section anchor="introduction" title="Introduction">
<t>This extension to the <xref target="I-D.ietf-oauth-v2">OAuth 2</xref>
protocol defines two additional parameters that a client can include in
requests to the user authorization endpoint which can be used to
identify an instance of a given client and distinguish it from other
instances of the same client that a user may authorize. These are
intended to aid in the user experience and to be used in addition to the
client identifier as defined in <xref target="I-D.ietf-oauth-v2">OAuth
2</xref>.</t>
<section title="Multiple Copies of One Client">
<t>A given client identifier may represent more than one access grant
for a given user within a system protected by OAuth. For example, a
user may authorize the same installed client on both a laptop and a
desktop computer. Each of these would have the same client identifier
but be issued different tokens and will have been granted access
separately. This extension is intended to allow the two client
instances to identify themselves to the authorization server in a way
that the user could later differentiate which tokens belonged to which
copy of the client.</t>
</section>
<section title="Proxied Client Access">
<t>An OAuth client capable of using the web-server flow could allow
the user to interact with it through another means such as email or
SMS. In this case, the OAuth client is a single entity with a single
client ID which in turn could have multiple distinct grants per user.
For example, in an email-proxied system, a user could grant access to
the email proxy using multiple separate email addresses. In each of
these, the client is the proxy itself, but the grant is being made on
behalf of a particular email account. This extension is intended to
allow the proxy client to identify to the authorization server which
address is being requested.</t>
</section>
<section title="Dynamic, Anonymous, or Unregistered Clients">
<t>An authorization server can allow unregistered or anonymous clients
to access its protected resources. In these cases, the client
credentials could act as a user-agent string, providing a
machine-identifiable string claimed by the client itself. This
extension is intended to allow such clients to present identifying
information to the end-user through the authorization endpoint. See
the <xref target="Security">security considerations</xref> section for
more information.</t>
</section>
</section>
<section title="Parameters">
<t hangText="instance_name"><list hangIndent="6" style="hanging">
<t hangText="instance_name"><vspace blankLines="0" />OPTIONAL A
short, human-readable name that the server SHOULD display to the
end-user along with the client name.</t>
<t hangText="instance_description"><vspace blankLines="0" />OPTIONAL
A longer, human-readable description that the server MAY display to
the end-user along with the client name. If a client presents the
instance_description, it MUST also present an instance_name.</t>
</list>The server MUST NOT assume any format or structure to either of
the parameters.</t>
<t>If present, the authorization server SHOULD store this information
along with its associated access grant in order to present it to the
user at a future time. The authorization server MAY allow the end-user
to edit or augment the client-presented information prior to storage.
The authorization server MAY impose size limitations on either or both
parameters, and such limitations SHOULD be documented as part of the the
authorization server's API.</t>
</section>
<section anchor="IANA" title="IANA Considerations">
<t>This document makes no request of IANA.</t>
</section>
<section anchor="Security" title="Security Considerations">
<t>The instance_name and instance_description parameters MUST be treated
as self-asserted information from the client and MUST NOT be treated as
a replacement for a client credential or client_id as defined in <xref
target="I-D.ietf-oauth-v2">OAuth 2</xref>. Instead, the instance
parameters MUST be treated with a level of trust appropriate to the end
client, whether public or private.</t>
<t>When this information is displayed to the user, the authorization
server MUST present it in such a way as to make clear to the end user
that the instance information is self-asserted by the client and has not
been validated. The authorization server MUST NOT display the instance
information in lieu of a pre-registered display name, if available, but
SHOULD display the instance information in addition to a pre-registered
display name, if available.</t>
</section>
<section title="History">
<t>This extension is a continuation of the concepts proposed by the
<xref target="google_oauth">x_oauth_display_name</xref> parameter as
deployed by Google. Google has used this extension parameter to allow
for unregistered clients using the consumer key and secret of
anonymous/anonymous to identify themselves to the system. In this
deployment, as far as the Authorization Server is concerned, all
unregistered apps are different instances of the anonymous/anonymous
client. As dicussed <xref target="introduction">above</xref>, this
extension seeks to standardize use for unregistered, proxied, and
multi-instance clients alike.</t>
</section>
<section title="Acknowledgements">
<t>Thanks to Marius Scurtescu and the OAuth Working Group for
feedback.</t>
</section>
</middle>
<back>
<references title="Normative References">
<?rfc include='http://xml.resource.org/public/rfc/bibxml/reference.RFC.2119.xml'?>
<?rfc include='http://xml.resource.org/public/rfc/bibxml3/reference.I-D.draft-ietf-oauth-v2-10.xml'?>
</references>
<references title="Other References">
<reference anchor="google_oauth"
target="http://code.google.com/apis/accounts/docs/OAuth_ref.html">
<front>
<title>Google OAuth API Documentation</title>
<author>
<organization>Google</organization>
</author>
<date />
</front>
</reference>
</references>
</back>
</rfc>