From af729fcadbb9357a9ff2ba1ea048972d48b6ddb7 Mon Sep 17 00:00:00 2001 From: Maksim Likharev Date: Fri, 10 May 2019 13:51:16 -0700 Subject: [PATCH] Fix help file for password grant referesh_token curl sample (#42) (#67) * 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 https://github.com/Haufe-Lexware/wicked.haufe.io/issues/177 * Fixed https://github.com/Haufe-Lexware/wicked.haufe.io/issues/179 * Fix help file for password grant referesh_token curl sample * Update jQuery to 3.4.1 --- package.json | 2 +- views/help/oauth2_password_grant.jade | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index c613a70..0bccb5e 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/views/help/oauth2_password_grant.jade b/views/help/oauth2_password_grant.jade index d6bc81b..0c21606 100644 --- a/views/help/oauth2_password_grant.jade +++ b/views/help/oauth2_password_grant.jade @@ -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":"(your client id)","client_secret":"(your client secret)","refresh_token":"(refresh token)"}' #{authUrl}(auth method id)/api/(api id)/token + curl -X POST -H 'Content-Type: application/json' -d '{"grant_type":"refresh_token","client_id":"(your client id)","client_secret":"(your client secret)","refresh_token":"(refresh token)"}' #{authUrl}(auth method id)/api/(api id)/token p. As above, public clients (non-confidential clients) must not present their client secret when refreshing the token: pre. - curl -X POST -H 'Content-Type: application/json' -d '{"grant_type=refresh_token","client_id":"(your client id)","refresh_token":"(refresh token)"}' #{authUrl}(auth method id)/api/(api id)/token + curl -X POST -H 'Content-Type: application/json' -d '{"grant_type":"refresh_token","client_id":"(your client id)","refresh_token":"(refresh token)"}' #{authUrl}(auth method id)/api/(api id)/token p. If successful, the Authorization Server will return a new access token and a new refresh token.