Skip to content

Commit

Permalink
Fix help file for password grant referesh_token curl sample (#42) (#67)
Browse files Browse the repository at this point in the history
*  Fix help file for password grant referesh_token curl sample  (#42)

* Feature to allow publishing of an api without having to require any authentication.

* Don't show application related message for no-auth API

* Fixed issue Haufe-Lexware/wicked.haufe.io#177

* Fixed Haufe-Lexware/wicked.haufe.io#179

* Fix help file for password grant referesh_token curl sample

* Update jQuery to 3.4.1
  • Loading branch information
Maksim Likharev authored May 10, 2019
1 parent 525aade commit af729fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"express-session": "1.15.6",
"highlight.js": "9.3.0",
"jade": "1.11.0",
"jquery": "3.3.1",
"jquery": "3.4.1",
"jsgrid": "1.5.3",
"marked": "0.5.2",
"morgan": "1.9.1",
Expand Down
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

0 comments on commit af729fc

Please sign in to comment.