Update client section
Use client_id as defined in oauth rfc instead of custom client field Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
parent
32931689d5
commit
6d6c37c06a
1 changed files with 8 additions and 5 deletions
|
@ -53,11 +53,14 @@ Content-Type: application/x-www-form-urlencoded
|
||||||
this service.
|
this service.
|
||||||
</dd>
|
</dd>
|
||||||
<dt>
|
<dt>
|
||||||
<code>client</code>
|
<code>client_id</code>
|
||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
(REQUIRED) The name of the client which is getting accessed. Intended to be human
|
(REQUIRED) String identifying the client. This client_id does not need
|
||||||
readable for key auditing.
|
to be registered with the authorization server but should be set to a
|
||||||
|
meaningful value in order to allow auditing keys created by unregistered
|
||||||
|
clients. Accepted syntax is defined in
|
||||||
|
[RFC6749 Appendix A.1](https://tools.ietf.org/html/rfc6749#appendix-A.1)
|
||||||
</dd>
|
</dd>
|
||||||
<dt>
|
<dt>
|
||||||
<code>access_type</code>
|
<code>access_type</code>
|
||||||
|
@ -97,7 +100,7 @@ Host: auth.docker.io
|
||||||
Authorization: ...
|
Authorization: ...
|
||||||
Content-Type: application/x-www-form-urlencoded
|
Content-Type: application/x-www-form-urlencoded
|
||||||
|
|
||||||
grant_type=password&service=hub.docker.io&client=dockerengine&access_type=offline
|
grant_type=password&service=hub.docker.io&client_id=dockerengine&access_type=offline
|
||||||
|
|
||||||
HTTP/1.1 200 OK
|
HTTP/1.1 200 OK
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
|
@ -112,7 +115,7 @@ POST /token HTTP/1.1
|
||||||
Host: auth.docker.io
|
Host: auth.docker.io
|
||||||
Content-Type: application/x-www-form-urlencoded
|
Content-Type: application/x-www-form-urlencoded
|
||||||
|
|
||||||
grant_type=refresh_token&refresh_token=kas9Da81Dfa8&service=registry-1.docker.io&client=dockerengine&scope=repository:samalba/my-app:pull,push
|
grant_type=refresh_token&refresh_token=kas9Da81Dfa8&service=registry-1.docker.io&client_id=dockerengine&scope=repository:samalba/my-app:pull,push
|
||||||
|
|
||||||
HTTP/1.1 200 OK
|
HTTP/1.1 200 OK
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
|
|
Loading…
Reference in a new issue