-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdraft-hammer-oauth-10.xml
More file actions
3220 lines (3076 loc) · 189 KB
/
draft-hammer-oauth-10.xml
File metadata and controls
3220 lines (3076 loc) · 189 KB
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd">
<?xml-stylesheet type="text/xsl" href="rfc2629.xslt" ?>
<rfc category="info" ipr="trust200902" docName="draft-hammer-oauth-10">
<?rfc strict="yes" ?>
<?rfc toc="yes" ?>
<?rfc tocdepth="3" ?>
<?rfc symrefs="yes" ?>
<?rfc sortrefs="yes" ?>
<?rfc compact="yes" ?>
<?rfc subcompact="no" ?>
<front>
<title abbrev="OAuth 1.0">The OAuth 1.0 Protocol</title>
<author initials="E" surname="Hammer-Lahav" fullname="Eran Hammer-Lahav" role="editor">
<organization />
<address>
<email>eran@hueniverse.com</email>
<uri>http://hueniverse.com</uri>
</address>
</author>
<date year="2010"/>
<abstract>
<t>
OAuth は、リソースオーナー (別のクライアントやエンドユーザー) に代わって、サーバーリソースにアクセスするための方法を、クライアントに提供するものである。また、リダイレクトを利用することで、エンドユーザーはクライアントにユーザ名やパスワードを共有することなく、サーバーリソースへの第三者アクセスを認可することができる。
<!--
OAuth provides a method for clients to access server resources on behalf of a resource
owner (such as a different client or an end-user). It also provides a process for end-users
to authorize third-party access to their server resources without sharing their credentials
(typically, a username and password pair), using user-agent redirections.
-->
</t>
</abstract>
</front>
<middle>
<section title="はじめに">
<!-- section title="Introduction" -->
<t>
OAuth は、保護されたリソースに対するアクセス権限を第三者へ委譲する際の共通の問題について、その解決方法を必要としていたさまざまな Web サイトやインターネットサービスの開発者からなるコミュニティから生まれた。その後 OAuth は2007年10月に安定版の version 1.0 となり、2009年9月に改訂され <xref target="OAuth Core 1.0 Revision A" /> となった。
<!--
The OAuth protocol was originally created by a small community of web developers from a
variety of websites and other Internet services, who wanted to solve the common problem of
enabling delegated access to protected resources. The resulting OAuth protocol was
stabilized at version 1.0 in October 2007, revised in June 2009, and published as
<xref target="OAuth Core 1.0 Revision A" />.
-->
</t>
<t>
この仕様書では改訂版 <xref target="OAuth Core 1.0 Revision A" /> を OAuth 1.0 として扱い、大幅な文書の明瞭化と同時に改訂後に指摘された誤字修正も行っている。なおこの仕様書の公開をもって、オリジナルの OAuth 仕様の執筆者達の手による OAuth 仕様策定権限は、コミュニティから IETF に移管される。
<!--
This specification provides an informational documentation of the OAuth 1.0 protocol as
revised in <xref target="OAuth Core 1.0 Revision A" />, and includes several errata
reported since that time, as well as numerous editorial clarifications. The publication
of this specification represents the transfer of change control from the community to the
IETF by the authors of the original work.
-->
</t>
<t>
従来のクライアント・サーバー型認証モデルでは、サーバー上のリソースにアクセスするためにクライアントは自身の認証情報を利用する。分散した Web サービスやクラウドコンピューティングの利用拡大により、ますます多くのサードパーティーアプリケーションがこれらのサーバー上リソースへのアクセス権を必要とすることになる。
<!--
In the traditional client-server authentication model, the client uses its credentials to
access its resources hosted by the server. With the increasing use of distributed web
services and cloud computing, third-party applications require access to these
server-hosted resources.
-->
</t>
<t>
OAuth は従来のクライアント・サーバー型認証モデルに加え、3つめの役割「リソースオーナー」を導入する。OAuth モデルでは、クライアント (リソースオーナーではないが、リソースオーナーの代理として振る舞う) は、リソースオーナーが管理しながらもサーバーにホスティングされているリソースへのアクセス権を要求する。サーバーは、リソースオーナーの認可情報と同時に、リクエスト元であるクライアントの身元も検証することができる。
<!--
OAuth introduces a third role to the traditional client-server authentication model: the
resource owner. In the OAuth model, the client (which is not the resource owner, but
is acting on its behalf) requests access to resources controlled by the resource owner, but
hosted by the server. In addition, OAuth allows the server to verify not only the resource
owner authorization, but also the identity of the client making the request.
-->
</t>
<t>
OAuth はクライアントがリソースオーナー (異なるクライアントやエンドユーザーなど) の代理としてサーバーリソースにアクセスする方法を提供する。またエンドユーザーが自身の認証情報 (典型例: ユーザ名およびパスワード) を共有することなしに自身のサーバーリソースへのアクセスを許可する一連のプロセスも提供する。このプロセスではユーザーエージェントのリダイレクトを利用する。
<!--
OAuth provides a method for clients to access server resources on behalf of a resource
owner (such as a different client or an end-user). It also provides a process for end-users
to authorize third-party access to their server resources without sharing their credentials
(typically, a username and password pair), using user-agent redirections.
-->
</t>
<t>
例として、ユーザ (リソースオーナー) がプリントサービス (クライアント) に、自身が写真共有サービス (サーバー) 上に保有するプライベートな写真へのアクセス権を与えることを考える。ここではユーザ名とパスワードはプリントサービスに提示しない。その代わりにユーザは写真共有サービス上で直接認証を行い、写真共有サービスがプリントサービスへの委譲専用のユーザー証明書を発行する。
<!--
For example, a web user (resource owner) can grant a printing service (client) access to
her private photos stored at a photo sharing service (server), without sharing her
username and password with the printing service. Instead, she authenticates directly with
the photo sharing service which issues the printing service delegation-specific credentials.
-->
</t>
<t>
リソースアクセスのために、クライアントはまずはじめにリソースオーナーから許可を受ける必要がある。この許可情報はトークンと共有鍵の形で示される。トークンがあることでリソースオーナーはクライアントに自身の認証情報を共有する必要がなくなる。リソースオーナーの認証情報と異なり、トークンは限定的な用途でかつ有効期限付きで発行することが可能であり、個別に破棄することができる。
<!--
In order for the client to access resources, it first has to obtain permission from the
resource owner. This permission is expressed in the form of a token and matching
shared-secret. The purpose of the token is to make it unnecessary for the resource owner to
share its credentials with the client. Unlike the resource owner credentials, tokens can be
issued with a restricted scope and limited lifetime, and revoked independently.
-->
</t>
<t>
この仕様書は2つの部分からなる。前半部ではエンドユーザーがクライアントにリソースへのアクセス権を認可する際の、リダイレクトベースのユーザーエージェント処理について定義する。後半部では2セットのクレデンシャルを用いて認証済み HTTP <xref target="RFC2616" /> リクエストを行う方法を定義する。この2セットのクレデンシャルは、1つはリクエストを行っているクライアントを識別するために用いられ、もう1つはそのリクエストでクライアントが代理となるリソースオーナーを識別するために用いられる。
<!--
This specification consists of two parts. The first part defines a redirection-based
user-agent process for end-users to authorize client access to their resources, by
authenticating directly with the server and provisioning tokens to the client for use with
the authentication method. The second part defines a method for making authenticated HTTP
<xref target="RFC2616" /> requests using two sets of credentials, one identifying the
client making the request, and a second identifying the resource owner on whose behalf the
request is being made.
-->
</t>
<t>
OAuth を <xref target="RFC2616" /> 以外の転送プロトコル上で用いる方法については定義されていない。
<!--
The use of OAuth with any other transport protocol than <xref target="RFC2616" /> is
undefined.
-->
</t>
<section title="用語定義">
<!-- section title="Terminology" -->
<t>
<list style="hanging" hangIndent="6">
<t hangText="クライアント (client)">
<vspace />
<xref target="requests">OAuth 認証済みリクエスト</xref>を発行可能な HTTP クライアント (<xref target="RFC2616" /> 参照)
</t>
<!--
<t hangText="client">
<vspace />
An HTTP client (per <xref target="RFC2616" />) capable of making
<xref target="requests">OAuth-authenticated requests</xref>.
</t>
-->
<t hangText="サーバー (server)">
<vspace />
<xref target="requests">OAuth 認証済みリクエスト</xref>を受入可能な HTTP サーバー (<xref target="RFC2616" /> 参照)
</t>
<!--
<t hangText="server">
<vspace />
An HTTP server (per <xref target="RFC2616" />) capable of accepting
<xref target="requests">OAuth-authenticated requests</xref>.
</t>
-->
<t hangText="保護されたリソース (protected resource)">
<vspace />
アクセス制限下にあるリソースで、<xref target="requests">OAuth 認証済みリクエスト</xref>を用いて取得可能なもの。
</t>
<!--
<t hangText="protected resource">
<vspace />
An access-restricted resource which can be obtained from the server using an
<xref target="requests">OAuth-authenticated request</xref>.
</t>
-->
<t hangText="リソースオーナー (resource owner)">
<vspace />
サーバーに対して自身の認証情報を用いて認証し、保護されたリソースへのアクセスおよびコントロールを行えるもの。
</t>
<!--
<t hangText="resource owner">
<vspace />
An entity capable of accessing and controlling protected resources by using credentials
to authenticate with the server.
</t>
-->
<t hangText="クレデンシャル (credentials)">
<vspace />
ここでいうクレデンシャルとはユニークな識別子と共有鍵のペアを指す。OAuth では「クライアント」「テンポラリ」「トークン」の3種類のクレデンシャルが定義され、リクエストを行うクライアントの識別および認証、認可リクエスト、アクセス権受け渡しの際にそれぞれ用いられる。
</t>
<!--
<t hangText="credentials">
<vspace />
Credentials are a pair of a unique identifier and a matching shared secret. OAuth
defines three classes of credentials: client, temporary, and token, used to identify
and authenticate the client making the request, the authorization request, and the
access grant, respectively.
</t>
-->
<t hangText="トークン (token)">
<vspace />
サーバーが発行するユニークな識別子。クライアントは認可要求を行ったもしくは認可を受けたリソースオーナーと、認証済みリクエストを結びつけるためにトークンを利用する。トークンには共有鍵がセットになっており、クライアントはトークン所有権およびリソースオーナーの代理権を証明するために共有鍵を用いる。
</t>
<!--
<t hangText="token">
<vspace />
An unique identifier issued by the server and used by the client to associate
authenticated requests with the resource owner whose authorization is requested or
has been obtained by the client. Tokens have a matching shared-secret that is used
by the client to establish its ownership of the token, and its authority to represent
the resource owner.
</t>
-->
</list>
</t>
<t>
オリジナルのコミュニティ仕様書では多少異なる用語が用いられていた。それらはこの仕様書では以下のように表記されている。(左側がオリジナル仕様書)
<!--
The original community specification used a somewhat different terminology which maps to
this specifications as follows (original community terms provided on left):
-->
<list style="hanging">
<t hangText="Consumer">クライアント (client)</t>
<t hangText="Service Provider">サーバー (server)</t>
<t hangText="User">リソースオーナー (resource owner)</t>
<t hangText="Consumer Key and Secret">クライアントクレデンシャル (client credentials)</t>
<t hangText="Request Token and Secret">テンポラリクレデンシャル (temporary credentials)</t>
<t hangText="Access Token and Secret">トークンクレデンシャル (token credentials)</t>
</list>
<!--
<list style="hanging">
<t hangText="Consumer:">client</t>
<t hangText="Service Provider:">server</t>
<t hangText="User:">resource owner</t>
<t hangText="Consumer Key and Secret:">client credentials</t>
<t hangText="Request Token and Secret:">temporary credentials</t>
<t hangText="Access Token and Secret:">token credentials</t>
</list>
-->
</t>
</section>
<section title="例">
<!-- section title="Example" -->
<t>
Jane (リソースオーナー) が写真共有サイト 'photos.example.net' (サーバー) に休暇中の写真 (保護されたリソース) をアップロードしたものとする。彼女は 'printer.example.com' (クライアント) を使って写真を現像したい。通常であれば、Jane は 'photos.example.net' にユーザ名とパスワードを使ってログインするはずである。
</t>
<!--t>
Jane (resource owner) has recently uploaded some private vacation photos (protected
resources) to her photo sharing site 'photos.example.net' (server). She would like to use
the 'printer.example.com' website (client) to print one of these photos. Typically, Jane
signs-into 'photos.example.net' using her username and password.
</t-->
<t>
しかし、Jane は写真を現像するためとはいえ 'printer.example.com' に対してユーザ名とパスワードを提示したくない。そこで 'printer.example.com' では、ユーザによりよいサービスを提供するため、事前に 'photos.example.net' の提供するクライアントクレデンシャルを取得している。
<!--t>
However, Jane does not wish to share her username and password with the 'printer.example.com'
website, which needs to access the photo in order to print it. In order to provide its
users with better service, 'printer.example.com' has signed-up for a set of 'photos.example.net'
client credentials ahead of time:
-->
<list style="hanging" hangIndent="6">
<t hangText="クライアント識別子">
<vspace />
dpf43f3p2l4k3l03
</t>
<!--t hangText="Client Identifier">
<vspace />
dpf43f3p2l4k3l03
</t-->
<t hangText="クライアント共有鍵">
<vspace />
kd94hf93k423kf44
</t>
<!--t hangText="Client Shared-Secret:">
<vspace />
kd94hf93k423kf44
</t-->
</list>
'printer.example.com' はまた、'photos.example.net' の API ドキュメントに記載された <spanx style="verb">HMAC-SHA1</spanx> 署名方式を用いたプロトコルエンドポイントを使うよう、アプリケーションを設定済みである。
<!--
The 'printer.example.com' website has also configured its application to use the protocol
endpoints listed in the 'photos.example.net' API documentation, which use the
<spanx style="verb">HMAC-SHA1</spanx> signature method:
-->
<list style="hanging" hangIndent="6">
<t hangText="テンポラリクレデンシャルリクエスト">
<vspace />
https://photos.example.net/initiate
</t>
<!--t hangText="Temporary Credential Request">
<vspace />
https://photos.example.net/initiate
</t-->
<t hangText="リソースオーナー認可URI">
<vspace />
https://photos.example.net/authorize
</t>
<!--t hangText="Resource Owner Authorization URI:">
<vspace />
https://photos.example.net/authorize
</t-->
<t hangText="トークンリクエストURI">
<vspace />
https://photos.example.net/token
</t>
<!--t hangText="Token Request URI:">
<vspace />
https://photos.example.net/token
</t-->
</list>
</t>
<t>
'printer.example.com' が Jane に写真へのアクセス許可を求めるには、まず代理でのリクエストを認識するため、'photos.example.net' に対し、テンポラリクレデンシャルの発行を求めなければならない。これを行うため、クライアントは下記のような HTTPS <xref target="RFC2818" /> リクエストをサーバーに送信する。
</t>
<!--t>
Before 'printer.example.com' can ask Jane to grant it access to the photos, it must
first establish a set of temporary credentials with 'photos.example.net' to identify
the delegation request. To do so, the client sends the following HTTPS
<xref target="RFC2818" /> request to the server:
</t-->
<figure>
<artwork xml:space="preserve"><![CDATA[
POST /initiate HTTP/1.1
Host: photos.example.net
Authorization: OAuth realm="Photos",
oauth_consumer_key="dpf43f3p2l4k3l03",
oauth_signature_method="HMAC-SHA1",
oauth_timestamp="137131200",
oauth_nonce="wIjqoS",
oauth_callback="http%3A%2F%2Fprinter.example.com%2Fready",
oauth_signature="74KNZJeDHnMBp0EMJ9ZHt%2FXKycU%3D"
]]>
</artwork>
</figure>
<t>
サーバーはリクエストの正当性を確認し、HTTP レスポンスボディ (改行は掲載上の都合による) にテンポラリクレデンシャルを持たせた応答を行う。
</t>
<!--t>
The server validates the request and replies with a set of temporary credentials in the
body of the HTTP response (line breaks are for display purposes only):
</t-->
<figure>
<artwork xml:space="preserve"><![CDATA[
HTTP/1.1 200 OK
Content-Type: application/x-www-form-urlencoded
oauth_token=hh5s93j4hdidpola&oauth_token_secret=hdhd0244k9j7ao03&
oauth_callback_confirmed=true
]]>
</artwork>
</figure>
<t>
クライアントは Jane から彼女のプライベートな写真へのアクセスに関して承認を得るため、彼女のユーザーエージェントをサーバーのリソースオーナー認可エンドポイントにリダイレクトする。
</t>
<!--t>
The client redirects Jane's user-agent to the server's Resource Owner Authorization
endpoint to obtain Jane's approval for accessing her private photos:
</t-->
<figure>
<artwork xml:space="preserve"><![CDATA[
https://photos.example.net/authorize?oauth_token=hh5s93j4hdidpola
]]>
</artwork>
</figure>
<t>
サーバーは Jane にユーザ名とパスワードを使ったログインを要求し、成功した場合は、'printer.example.com' が写真にアクセスしてよいか尋ねる。Jane が承認を行うと、ユーザーエージェントは、先のリクエスト (改行は掲載上の都合による) で提供されたコールバック URI にクライアントをリダイレクトする。
</t>
<!--t>
The server requests Jane to sign-in using her username and password and if successful,
asks her to approve granting 'printer.example.com' access to her private photos. Jane
approves the request and her user-agent is redirected to the callback URI provided by
the client in the previous request (line breaks are for display purposes only):
</t-->
<figure>
<artwork xml:space="preserve"><![CDATA[
http://printer.example.com/ready?
oauth_token=hh5s93j4hdidpola&oauth_verifier=hfdp7dh39dks9884
]]>
</artwork>
</figure>
<t>
コールバックリクエストは、Jane の認可プロセス完了をクライアントに通知する。クライアントはその後、テンポラリクレデンシャルを用いて、(安全な TLS チャネル上で) トークンクレデンシャルを要求する。
</t>
<!--t>
The callback request informs the client that Jane completed the authorization process.
The client then requests a set of token credentials using its temporary credentials
(over a secure TLS channel):
</t-->
<figure>
<artwork xml:space="preserve"><![CDATA[
POST /token HTTP/1.1
Host: photos.example.net
Authorization: OAuth realm="Photos",
oauth_consumer_key="dpf43f3p2l4k3l03",
oauth_token="hh5s93j4hdidpola",
oauth_signature_method="HMAC-SHA1",
oauth_timestamp="137131201",
oauth_nonce="walatlh",
oauth_verifier="hfdp7dh39dks9884",
oauth_signature="gKgrFCywp7rO0OXSjdot%2FIHF7IU%3D"
]]>
</artwork>
</figure>
<t>
サーバーはリクエストの正当性を確認し、HTTP レスポンスボディにトークンクレデンシャルを持たせた応答を行う。
</t>
<!--t>
The server validates the request and replies with a set of token credentials in the body
of the HTTP response:
</t-->
<figure>
<artwork xml:space="preserve"><![CDATA[
HTTP/1.1 200 OK
Content-Type: application/x-www-form-urlencoded
oauth_token=nnch734d00sl2jdk&oauth_token_secret=pfkkdhi9sl3r4s00
]]>
</artwork>
</figure>
<t>
トークンクレデンシャルの取得により、クライアントがプライベートな写真を要求するための準備は整う。
</t>
<!--t>
With a set of token credentials, the client is now ready to request the private photo:
</t-->
<figure>
<artwork xml:space="preserve"><![CDATA[
GET /photos?file=vacation.jpg&size=original HTTP/1.1
Host: photos.example.net
Authorization: OAuth realm="Photos",
oauth_consumer_key="dpf43f3p2l4k3l03",
oauth_token="nnch734d00sl2jdk",
oauth_signature_method="HMAC-SHA1",
oauth_timestamp="137131202",
oauth_nonce="chapoH",
oauth_signature="MdpQcU8iPSUjWoN%2FUDMsK2sui9I%3D"
]]>
</artwork>
</figure>
<t>
'photos.example.net' サーバーはリクエストの正当性を確認し、要求された写真を返す。'printer.example.com' は Jane の認可の有効期間が終了するか、Jane がアクセスを無効にするまで、同じトークンクレデンシャルを使って、Jane の写真にアクセスし続けることができる。
</t>
<!--t>
The 'photos.example.net' server validates the request and responds with the requested
photo. 'printer.example.com' is able to continue accessing Jane's private photos using
the same set of token credentials for the duration of Jane's authorization, or until
Jane revokes access.
</t-->
</section>
<section title="要求記法および規則">
<!--section title="Notational Conventions"-->
<t>
用いられる各キーワード「MUST (しなければならない) 」、「MUST NOT (してはならない) 」、「REQUIRED (必須である) 」、「SHALL (するものとする) 」、「SHALL NOT (しないものとする) 」、「SHOULD (すべきである) 」、「SHOULD NOT (すべきではない) 」、「RECOMMENDED (推奨される) 」、「MAY (してもよい) 」、「OPTIONAL (任意である) 」は <xref target="RFC2119" /> で述べられている通りに解釈されるべきものである。
</t>
<!--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" />.
</t-->
</section>
</section>
<section title="リダイレクション・ベースの認可" anchor="redirect_workflow">
<!--section title="Redirection-Based Authorization" anchor="redirect_workflow"-->
<t>
OAuth はリソースオーナーがクライアントに認可を与える際にトークンを用いる。一般的にトークンクレデンシャルの発行は、リソースオーナーの要求を受けてサーバーが行う。その際、サーバーはトークン発行前にリソースオーナーのアイデンティティを (通常はユーザー名とパスワードを使用して) 認証する。
</t>
<!--t>
OAuth uses tokens to represent the authorization granted to the client by the resource
owner. Typically, token credentials are issued by the server at the resource owner's
request, after authenticating the resource owner's identity (usually using a username and
password).
</t-->
<t>
サーバーがトークンクレデンシャルの提供を行う方法は複数存在する。このセクションでは、HTTP リダイレクションとリソースオーナーのユーザーエージェントを使った、ひとつの方法を定義している。このリダイレクション・ベースの認可方法には、3つのステップがある。
<list style="numbers">
<t>
クライアントは、サーバーから (識別子と共有鍵の形式で) テンポラリクレデンシャルを取得する。テンポラリクレデンシャルは、認可プロセス中のアクセス要求を識別するために利用される。
</t>
<t>
リソースオーナーは、クライアントからの (テンポラリクレデンシャルによって識別される) アクセス要求をサーバーが許可することについて、承認を行う。
</t>
<t>
クライアントはテンポラリクレデンシャルを用い、サーバーに対してトークンクレデンシャルをリクエストする。これにより、リソースオーナーの保護されたリソースへのアクセスが可能になる。
</t>
</list>
</t>
<!--t>
There are many ways in which a server can facilitate the provisioning of token credentials.
This section defines one such way, using HTTP redirections and the resource owner's
user-agent. This redirection-based authorization method includes three steps:
<list style="numbers">
<t>
The client obtains a set of temporary credentials from the server (in the form of an
identifier and shared-secret). The temporary credentials are used to identify the
access request throughout the authorization process.
</t>
<t>
The resource owner authorizes the server to grant the client's access request
(identified by the temporary credentials).
</t>
<t>
The client uses the temporary credentials to request a set of token credentials from
the server, which will enable it to access the resource owner's protected resources.
</t>
</list>
</t-->
<t>
サーバーは、トークンクレデンシャル発行後、テンポラリクレデンシャルを破棄しなければならない (MUST)。テンポラリクレデンシャルには有効期限を設けることを推奨する (RECOMMENDED)。サーバーは、クライアントに対して発行済のトークンクレデンシャルを、リソースオーナーが破棄できるようにするべきである (SHOULD)。
</t>
<!--t>
The server MUST revoke the temporary credentials after being used once to obtain the token
credentials. It is RECOMMENDED that the temporary credentials have a limited lifetime.
Servers SHOULD enable resource owners to revoke token credentials after they have been
issued to clients.
</t-->
<t>
クライアントがこれらのステップを行えるように、サーバーは以下の3つのエンドポイント URI を知らせる必要がある。
<list style="hanging" hangIndent="6">
<t hangText="テンポラリクレデンシャルリクエスト">
<vspace />
テンポラリクレデンシャルを取得するため、クライアントに用いられるエンドポイント。(<xref target="auth_step1" /> 参照)
</t>
<t hangText="リソースオーナー認可">
<vspace />
認可を与えるため、リソースオーナーがリダイレクトされるエンドポイント。(<xref target="auth_step2" /> 参照)
</t>
<t hangText="トークンリクエスト">
<vspace />
テンポラリクレデンシャルを使ってトークンクレデンシャルを要求するため、クライアントに用いられるエンドポイント。(<xref target="auth_step3" /> 参照)
</t>
</list>
</t>
<!--t>
In order for the client to perform these steps, the server needs to advertise the URIs of
the following three endpoints:
<list style="hanging" hangIndent="6">
<t hangText="Temporary Credential Request">
<vspace />
The endpoint used by the client to obtain a set of temporary credentials as described
in <xref target="auth_step1" />.
</t>
<t hangText="Resource Owner Authorization">
<vspace />
The endpoint to which the resource owner is redirected to grant authorization as
described in <xref target="auth_step2" />.
</t>
<t hangText="Token Request">
<vspace />
The endpoint used by the client to request a set of token credentials using the
set of temporary credentials as described in <xref target="auth_step3" />.
</t>
</list>
</t-->
<t>
通達された3つの URI は、クエリー要素を含んでもよい (MAY)。(<xref target="RFC3986" /> 3節参照) ただし、エンドポイント利用時に URI に追加されるプロトコルパラメータとの競合を防ぐため、クエリーには <spanx style="verb">oauth_</spanx> で始まるパラメータを含んではならない (MUST NOT)。
</t>
<!--t>
The three URIs advertised by the server MAY include a query component as defined by
<xref target="RFC3986" /> section 3, but if present, the query MUST NOT contain any
parameters beginning with the <spanx style="verb">oauth_</spanx> prefix, to avoid conflicts
with the protocol parameters added to the URIs when used.
</t-->
<t>
サーバーが3つのエンドポイントを通達、ドキュメント化する方法は、この仕様の範囲外である。クライアントは、本仕様で未定義な、トークンのサイズや他のサーバーで生成された値について、仮定をすべきではない。プロトコルパラメータは、転送時にエンコードが必要な値を含む場合がある (MAY)。クライアントとサーバーは、値の範囲を仮定してはならない。
</t>
<!--t>
The methods in which the server advertises and documents its three endpoints are beyond the
scope of this specification. Clients should avoid making assumptions about the size of
tokens and other server-generated values, which are left undefined by this specification.
In addition, protocol parameters MAY include values which require encoding when
transmitted. Clients and servers should not make assumptions about the possible range of
their values.
</t-->
<section title="テンポラリクレデンシャル" anchor="auth_step1">
<!--section title="Temporary Credentials" anchor="auth_step1"-->
<t>
クライアントは、テンポラリクレデンシャルリクエストのエンドポイントに、<xref target="requests">認証済みの</xref> HTTP <spanx style="verb">POST</spanx> リクエストを行うことによって、サーバーからテンポラリクレデンシャルを取得する (サーバーが他の HTTP リクエストメソッドを推奨する場合はこの限りではない)。クライアントは、次の必須 (REQUIRED) パラメータをリクエストに加えることにより、(同じメソッドを利用して、他のパラメータに加えることで) リクエスト URI を構成する。
<list style="hanging" hangIndent="6">
<t hangText="oauth_callback">
リソースオーナー認証手順 (<xref target="auth_step2" />) 完了時に、サーバーがリソースオーナーをリダイレクトさせる絶対 URI。もしクライアントがコールバックを受け取ることができない、もしくはコールバック URI が他の手段を介して確立されたなら、このパラメータを使用しないことを示すために <spanx style="verb">oob</spanx> (大文字小文字を区別) をセットしなければならない (MUST)。
</t>
<t hangText="サーバーは、追加パラメータを指定してもよい (MAY)。">
</t>
</list>
</t>
<!--t>
The client obtains a set of temporary credentials from the server by making an
<xref target="requests">authenticated</xref> HTTP <spanx style="verb">POST</spanx>
request to the Temporary Credential Request endpoint (unless the server advertises
another HTTP request method for the client to use). The client constructs a request URI
by adding the following REQUIRED parameter to the request (in addition to the other
protocol parameters, using the same parameter transmission method):
<list style="hanging" hangIndent="6">
<t hangText="oauth_callback:">
An absolute URI to which the server will redirect the resource owner back when the
Resource Owner Authorization step (<xref target="auth_step2" />) is completed. If the
client is unable to receive callbacks or a callback URI has been established via other
means, the parameter value MUST be set to <spanx style="verb">oob</spanx> (case sensitive),
to indicate an out-of-band configuration.
</t>
<t hangText="Servers MAY specify additional parameters.">
</t>
</list>
</t-->
<t>
クライアントは、クライアントクレデンシャルのみを使用して認証要求を行う。クライアントは、空の oauth_token パラメータをリクエストから省略してもよい (MAY)。またその場合は、トークンシークレットパラメータとして、空文字を使用しなければならない (MUST)。
</t>
<!--t>
When making the request, the client authenticates using only the client credentials. The
client MAY omit the empty <spanx style="verb">oauth_token</spanx> protocol parameter
from the request and MUST use the empty string as the token secret value.
</t-->
<t>
結果は HTTP レスポンス中にプレーンテキスト形式のクレデンシャルとして返されるため、サーバーは TLS や SSL などのトランスポート層のメカニズム (もしくはそれらに相当するセキュアチャネル) を用いなければならない (MUST)。
</t>
<!--t>
Since the request results in the transmission of plain text credentials in the HTTP
response, the server MUST require the use of a transport-layer mechanisms such as TLS
or SSL (or a secure channel with equivalent protections).
</t-->
<figure>
<preamble>
たとえば、クライアントは以下のような HTTPS リクエストを行う。
</preamble>
<!--preamble>
For example, the client makes the following HTTPS request:
</preamble-->
<artwork xml:space="preserve"><![CDATA[
POST /request_temp_credentials HTTP/1.1
Host: server.example.com
Authorization: OAuth realm="Example",
oauth_consumer_key="jd83jd92dhsh93js",
oauth_signature_method="PLAINTEXT",
oauth_callback="http%3A%2F%2Fclient.example.net%2Fcb%3Fx%3D1",
oauth_signature="ja893SD9%26"
]]>
</artwork>
</figure>
<t>
サーバーは、必ずリクエストを<xref target="verify_request">検証</xref>しなければならない (MUST)。リクエストが有効な場合、サーバーはクライアントに (識別子と共有鍵の形式で) テンポラリクレデンシャルを返す。テンポラリクレデンシャルは、ステータスコード 200 (OK) とともに、レスポンスボディーに <xref target="W3C.REC-html40-19980424" /> で定義された <spanx style="verb">application/x-www-form-urlencoded</spanx> 形式で含められる。
</t>
<!--t>
The server MUST <xref target="verify_request">verify</xref> the request and if valid,
respond back to the client with a set of temporary credentials (in the form of an
identifier and shared-secret). The temporary credentials are included in the HTTP
response body using the <spanx style="verb">application/x-www-form-urlencoded</spanx>
content type as defined by <xref target="W3C.REC-html40-19980424" /> with a 200 status
code (OK).
</t-->
<t>
レスポンスには次の必須 (REQUIRED) パラメータが含まれる。
<list style="hanging" hangIndent="6">
<t hangText="oauth_token">
<vspace />
テンポラリクレデンシャルの識別子
</t>
<t hangText="oauth_token_secret">
<vspace />
テンポラリクレデンシャルの共有鍵
</t>
<t hangText="oauth_callback_confirmed">
必ず存在しなければならない (MUST)、かつ <spanx style="verb">true</spanx> に設定する。このパラメータは、以前のバージョンと区別するために使用される。
</t>
</list>
</t>
<!--t>
The response contains the following REQUIRED parameters:
<list style="hanging" hangIndent="6">
<t hangText="oauth_token">
<vspace />
The temporary credentials identifier.
</t>
<t hangText="oauth_token_secret">
<vspace />
The temporary credentials shared-secret.
</t>
<t hangText="oauth_callback_confirmed:">
MUST be present and set to <spanx style="verb">true</spanx>. The parameter is used
to differentiate from previous versions of the protocol.
</t>
</list>
</t-->
<t>
パラメータ名に 'token' が含まれていても、このクレデンシャルはトークンクレデンシャルではないが、次の2つのステップで、トークンクレデンシャルと同様の使い方がされることに注意。
</t>
<!--t>
Note that even though the parameter names include the term 'token', these credentials are
not token credentials, but are used in the next two steps in a similar manner to token
credentials.
</t-->
<figure>
<preamble>
例 (改行は掲載上の都合による)
</preamble>
<!--preamble>
For example (line breaks are for display purposes only):
</preamble-->
<artwork xml:space="preserve"><![CDATA[
HTTP/1.1 200 OK
Content-Type: application/x-www-form-urlencoded
oauth_token=hdk48Djdsa&oauth_token_secret=xyz4992k83j47x0b&
oauth_callback_confirmed=true
]]>
</artwork>
</figure>
</section>
<section title="リソースオーナー認可" anchor="auth_step2">
<!-- section title="Resource Owner Authorization" anchor="auth_step2" -->
<t>
クライアントは、サーバーにトークンクレデンシャルを要求する前に、ユーザをサーバーに移動させて要求に対する認可を得なければならない (MUST)。クライアントはリソースオーナー認可エンドポイント URI に以下の必須 (REQUIRED) クエリーパラメータを追加して、リクエスト URI を構成する。
<!--
Before the client requests a set of token credentials from the server, it MUST send
the user to the server to authorize the request. The client constructs a request URI by
adding the following REQUIRED query parameter to the Resource Owner Authorization
endpoint URI:
-->
<list style="hanging" hangIndent="6">
<t hangText="oauth_token">
<vspace />
<xref target="auth_step1" />で <spanx style="verb">oauth_token</spanx> パラメータの値として得られるテンポラリクレデンシャルの識別子。サーバーはこのパラメータを任意とすることもできるが、その場合はリソースオーナーの識別子を示す代替手段を提供しなければならない (MUST)。
<!--
The temporary credentials identifier obtained in <xref target="auth_step1" />
in the <spanx style="verb">oauth_token</spanx> parameter. Servers MAY declare this
parameter as OPTIONAL, in which case they MUST provide a way for the resource owner
to indicate the identifier through other means.
-->
</t>
<t hangText="サーバーはこの他にもパラメータを指定することもできる (MAY)。">
<!-- t hangText="Servers MAY specify additional parameters." -->
</t>
</list>
</t>
<t>
クライアントは、HTTP リダイレクトレスポンスもしくはリソースオーナーのユーザーエージェントがサポートする何らかの代替手段を用いて、リソースオーナーを前述で構成された URI にリダイレクトさせる。このリクエストでは HTTP <spanx style="verb">GET</spanx> メソッドを用いなければならない (MUST)。
<!--
The client directs the resource owner to the constructed URI using an HTTP redirection
response, or by other means available to it via the resource owner's user-agent. The
request MUST use the HTTP <spanx style="verb">GET</spanx> method.
-->
</t>
<figure>
<preamble>
例: クライアントはリソースオーナーのユーザーエージェントをリダイレクトさせ、以下の HTTPS リクエストを実行させる。
<!--
For example, the client redirects the resource owner's user-agent to make the following
HTTPS request:
-->
</preamble>
<artwork xml:space="preserve"><![CDATA[
GET /authorize_access?oauth_token=hdk48Djdsa HTTP/1.1
Host: server.example.com
]]>
</artwork>
</figure>
<t>
サーバーの認可リクエストの処理方法については、TLS や SSL などのセキュアチャネルの利用有無とともにこの仕様の範囲外であるが、サーバーはまず最初にリソースオーナーのアイデンティティを検証しなければならない (MUST)。
<!--
The way in which the server handles the authorization request, including whether it uses
a secure channel such as TLS/SSL is beyond the scope of this specification. However, the
server MUST first verify the identity of the resource owner.
-->
</t>
<t>
リソースオーナーに要求されたアクセス権の認可を求める際、サーバーはアクセス権を要求しているクライアントの情報をリソースオーナーに提示するべきである (SHOULD)。その際はクライアント識別子と関連付けられたテンポラリクレデンシャルを利用する。このような情報を表示する際、サーバーはその情報が検証済みかどうか明示するべきである (SHOULD)。
<!--
When asking the resource owner to authorize the requested access, the server SHOULD
present to the resource owner information about the client requesting access based on the
association of the temporary credentials with the client identity. When displaying any
such information, the server SHOULD indicate if the information has been verified.
-->
</t>
<t>
リソースオーナーから認可の可否を受け取った後、コールバック URI が <spanx style="verb">oauth_callback</spanx> パラメータもしくはその他の方法によって提供されている場合、サーバーはリソースオーナーをそのコールバック URI にリダイレクトさせる。
<!--
After receiving an authorization decision from the resource owner, the server redirects
the resource owner to the callback URI if one was provided in the
<spanx style="verb">oauth_callback</spanx> parameter or by other means.
-->
</t>
<t>
アクセス権を認可したリソースオーナーが、クライアントに戻されたリソースオーナーと同一であることを確認するため、サーバーは検証コードを生成しなければならない (MUST)。検証コードは推測困難な値であり、リソースオーナーを通じてクライアントに渡され、リソースオーナー認可プロセス完了のために必須となる (REQUIRED)。サーバーはコールバック URI のクエリーパラメータに以下の必須パラメータを追加して、リクエスト URI を構成する。
<!--
To make sure that the resource owner granting access is the same resource owner returning
back to the client to complete the process, the server MUST generate a verification code:
an unguessable value passed to the client via the resource owner and REQUIRED to complete
the process. The server constructs the request URI by adding the following REQUIRED
parameters to the callback URI query component:
-->
<list style="hanging" hangIndent="6">
<t hangText="oauth_token">
クライアントから受け取ったテンポラリクレデンシャルの識別子。
<vspace />
<!--
The temporary credentials identifier received from the client.
-->
</t>
<t hangText="oauth_verifier">
<vspace />
検証コード。
<!--
The verification code.
-->
</t>
</list>
コールバック URI が既にクエリー要素を含む場合、サーバーは既存のクエリーの後ろに OAuth パラメータを追加しなければならない (MUST)。
<!--
If the callback URI already includes a query component, the server MUST append the
OAuth parameters to the end of the existing query.
-->
</t>
<figure>
<preamble>
例: サーバーはリソースオーナーのユーザーエージェントをリダイレクトさせ、以下の HTTP リクエストを実行させる。
<!--
For example, the server redirects the resource owner's user-agent to make the following
HTTP request:
-->
</preamble>
<artwork xml:space="preserve"><![CDATA[
GET /cb?x=1&oauth_token=hdk48Djdsa&oauth_verifier=473f82d3 HTTP/1.1
Host: client.example.net
]]>
</artwork>
</figure>
<t>
クライアントがコールバック URI を提示しない場合、サーバーは検証コードを表示し、リソースオーナーに対して手動でクライアントに認可処理の完了を伝えるよう指示すべきである (SHOULD)。クライアントが何らかの制約を持つデバイス上で動作していることを把握している場合、サーバーは検証コードを手入力に適した形式で提供すべきである (SHOULD)。
<!--
If the client did not provide a callback URI, the server SHOULD display the value of the
verification code, and instruct the resource owner to manually inform the client that
authorization is completed. If the server knows a client to be running on a limited device
it SHOULD ensure that the verifier value is suitable for manual entry.
-->
</t>
</section>
<section title="トークンクレデンシャル" anchor="auth_step3">
<!-- section title="Token Credentials" anchor="auth_step3" -->
<t>
クライアントは<xref target="requests">認証済み</xref> HTTP <spanx style="verb">POST</spanx> リクエストをトークンリクエストエンドポイントに送信し、サーバーからトークンクレデンシャルを取得する。(サーバーが他の HTTP リクエストメソッドを推奨する場合はこの限りではない) クライアントは (同じフィールドに格納される他プロトコルのパラメータに加え) 以下の必須 (REQUIRED) パラメータをリクエストに追加してリクエスト URI を構成する。
<!--
The client obtains a set of token credentials from the server by making an
<xref target="requests">authenticated</xref> HTTP <spanx style="verb">POST</spanx>
request to the Token Request endpoint (unless the server advertises another HTTP
request method for the client to use). The client constructs a request URI by adding the
following REQUIRED parameter to the request (in addition to the other protocol
parameters, using the same parameter transmission method):
-->
<list style="hanging" hangIndent="6">
<t hangText="oauth_verifier">
<vspace />
前ステップでサーバーから受け取った検証コード。
<!--
The verification code received from the server in the previous step.
-->
</t>
</list>
</t>
<t>
リクエストを行う際、クライアントはテンポラリクレデンシャル同様クライアントクレデンシャルを用いて認証する。テンポラリクレデンシャルは、認証済みリクエスト中でトークンクレデンシャルの代わりに用いられ、<spanx style="verb">oauth_token</spanx> パラメータの値として渡される。
<!--
When making the request, the client authenticates using the client credentials as well as
the temporary credentials. The temporary credentials are used as a substitute for token
credentials in the authenticated request and transmitted using the
<spanx style="verb">oauth_token</spanx> parameter.
-->
</t>
<t>
リクエスト結果は HTTP レスポンス中のプレーンテキストとして返されるため、サーバーは TLS や SSL などのトランスポート層のメカニズム (もしくはそれらに相当するセキュアチャネル) を用いなければならない (MUST)。
<!--
Since the request results in the transmission of plain text credentials in the HTTP
response, the server MUST require the use of a transport-layer mechanisms such as TLS
or SSL (or a secure channel with equivalent protections).
-->
</t>
<figure>
<preamble>
例: クライアントは以下の HTTPS リクエストを行う。
<!--
For example, the client makes the following HTTPS request:
-->
</preamble>
<artwork xml:space="preserve"><![CDATA[
POST /request_token HTTP/1.1
Host: server.example.com
Authorization: OAuth realm="Example",
oauth_consumer_key="jd83jd92dhsh93js",
oauth_token="hdk48Djdsa",
oauth_signature_method="PLAINTEXT",
oauth_verifier="473f82d3",
oauth_signature="ja893SD9%26xyz4992k83j47x0b"
]]>
</artwork>
</figure>
<t>
サーバーはリクエストの妥当性を<xref target="verify_request">検証</xref>し、リソースオーナーがクライアントにトークンクレデンシャルを提供することを認可していることを確認し、テンポラリクレデンシャルが期限切れおよび使用済みでないことを確認しなければならない (MUST)。サーバーはさらにクライアントから受け取った検証コードも検証しなければならない (MUST)。リクエストが有効で認可済みの場合は、ステータスコード 200 (OK) とともにレスポンスボディーに <xref target="W3C.REC-html40-19980424" /> で定義された <spanx style="verb">application/x-www-form-urlencoded</spanx> 形式でトークンクレデンシャルを含める。
<!--
The server MUST <xref target="verify_request">verify</xref> the validity of the request,
ensure that the resource owner has authorized the provisioning of token credentials to
the client, and ensure that the temporary credentials have not expired or been used
before. The server MUST also verify the verification code received from the client. If
the request is valid and authorized, the token credentials are included in the HTTP
response body using the <spanx style="verb">application/x-www-form-urlencoded</spanx>
content type as defined by <xref target="W3C.REC-html40-19980424" /> with a 200 status
code (OK).
-->
</t>
<t>
レスポンスは以下の必須 (REQUIRED) パラメータを含む。
<!--
The response contains the following REQUIRED parameters:
-->
<list style="hanging" hangIndent="6">
<t hangText="oauth_token">
<vspace />
トークン識別子
<!--
The token identifier.
-->
</t>
<t hangText="oauth_token_secret">
<vspace />
トークン共有鍵
<!--
The token shared-secret.
-->
</t>
</list>
</t>
<figure>
<preamble>
例:
<!--
For example:
-->
</preamble>
<artwork xml:space="preserve"><![CDATA[
HTTP/1.1 200 OK
Content-Type: application/x-www-form-urlencoded
oauth_token=j49ddk933skd9dks&oauth_token_secret=ll399dj47dskfjdk
]]>
</artwork>
</figure>
<t>
サーバーはスコープ、有効期間、およびリソースオーナーが承認したその他の属性を保持し、クライアントが発行済トークンクレデンシャルを用いてリクエストを行う際にそれらの制限を実施しなければならない。
<!--
The server must retain the scope, duration, and other attributes approved by the resource
owner, and enforce these restrictions when receiving a client request made with the token
credentials issued.
-->
</t>
<t>
ひとたびトークンクレデンシャルを受け取ると、クライアントはリソースオーナーの代理として、<xref target="requests">認証済みリクエスト</xref>により保護されたリソースにアクセスし続けることができる。その際、取得したトークンクレデンシャルとともにクライアントクレデンシャルを用いる。
<!--
Once the client receives and stores the token credentials, it can proceed to access
protected resources on behalf of the resource owner by making
<xref target="requests">authenticated requests</xref> using the client credentials
together with the token credentials received.
-->
</t>
</section>
</section>
<section title="認証済みリクエスト" anchor="requests">
<!-- section title="Authenticated Requests" anchor="requests" -->
<t>
クライアントは <xref target="RFC2617" /> で定義されている HTTP 認証メソッドにより、認証済み HTTP リクエストを行うことができる。これらのメソッドを使うクライアントは、クレデンシャル (ユーザ名とパスワード等) を使うことで、保護されたリソースへのアクセスが可能となり、サーバーはその権限の妥当性を検証することができる。代理リクエストとしてこれらのメソッドを利用する場合、クライアントはリソースオーナーの役割を担うものと仮定される必要がある。
</t>
<!--t>
The HTTP authentication methods defined by <xref target="RFC2617" />, enable clients
to make authenticated HTTP requests. Clients using these methods gain access to protected
resources by using their credentials (typically a username and password pair), which
allow the server to verify their authenticity. Using these methods for delegation requires
the client to assume the role of the resource owner.
</t-->
<t>
OAuth は各リクエストに際し、クライアントを識別するものと、リソースオーナーを識別するもの、2つのクレデンシャルを含むようにデザインされたメソッドを提供する。クライアントは、リソースオーナーの代理として認証済みリクエストを行う前に、まずリソースオーナーによって認可済みのトークンを取得しなければならない。<xref target="redirect_workflow" /> は、クライアントがリソースオーナーにより認可されたトークンを取得するひとつの方法である。
</t>
<!--t>
OAuth provides a method designed to include two sets of credentials with each request, one
to identify the client, and another to identify the resource owner. Before a client can
make authenticated requests on behalf of the resource owner, it must obtain a token
authorized by the resource owner. <xref target="redirect_workflow" /> provides one such