Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix help file for password grant referesh_token curl sample #42

Merged
merged 7 commits into from
Apr 29, 2019
4 changes: 2 additions & 2 deletions views/help/oauth2_password_grant.jade
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ block help_content
as before. Using curl syntax, the call will look like this (for confidential clients):

pre.
curl -X POST -H 'Content-Type: application/json' -d '{"grant_type=refresh_token","client_id":"<b style="color:#0a0">(your client id)</b>","client_secret":"<b style="color:#0a0">(your client secret)</b>","refresh_token":"<b style="color:#0a0">(refresh token)</b>"}' #{authUrl}<b style="color:#0a0">(auth method id)</b>/api/<b style="color:#0a0">(api id)</b>/token
curl -X POST -H 'Content-Type: application/json' -d '{"grant_type":"refresh_token","client_id":"<b style="color:#0a0">(your client id)</b>","client_secret":"<b style="color:#0a0">(your client secret)</b>","refresh_token":"<b style="color:#0a0">(refresh token)</b>"}' #{authUrl}<b style="color:#0a0">(auth method id)</b>/api/<b style="color:#0a0">(api id)</b>/token

p.
As above, public clients (non-confidential clients) <b>must not</b> present their client secret when refreshing the token:

pre.
curl -X POST -H 'Content-Type: application/json' -d '{"grant_type=refresh_token","client_id":"<b style="color:#0a0">(your client id)</b>","refresh_token":"<b style="color:#0a0">(refresh token)</b>"}' #{authUrl}<b style="color:#0a0">(auth method id)</b>/api/<b style="color:#0a0">(api id)</b>/token
curl -X POST -H 'Content-Type: application/json' -d '{"grant_type":"refresh_token","client_id":"<b style="color:#0a0">(your client id)</b>","refresh_token":"<b style="color:#0a0">(refresh token)</b>"}' #{authUrl}<b style="color:#0a0">(auth method id)</b>/api/<b style="color:#0a0">(api id)</b>/token

p.
If successful, the Authorization Server will return a new access token and a new refresh token.
Expand Down