From 0bc382b78a83ce9b145a72e02f26a3741d6d4848 Mon Sep 17 00:00:00 2001 From: TANAKA Koichi Date: Tue, 18 Jul 2017 16:52:29 +0900 Subject: [PATCH 1/2] Fix oauth2 password flow fix filed name for scope of grant request body. --- src/core/plugins/auth/actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/plugins/auth/actions.js b/src/core/plugins/auth/actions.js index 221d80a8..772e858c 100644 --- a/src/core/plugins/auth/actions.js +++ b/src/core/plugins/auth/actions.js @@ -73,7 +73,7 @@ export const authorizePassword = ( auth ) => ( { authActions } ) => { let { schema, name, username, password, passwordType, clientId, clientSecret } = auth let form = { grant_type: "password", - scopes: encodeURIComponent(auth.scopes.join(scopeSeparator)) + scope: encodeURIComponent(auth.scopes.join(scopeSeparator)) } let query = {} let headers = {} From 1e5304790ede020e31fcedfdf34f165c715cf91a Mon Sep 17 00:00:00 2001 From: shockey Date: Thu, 20 Jul 2017 17:20:01 -0700 Subject: [PATCH 2/2] Enable deep linking in dist/index.html --- dist/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/dist/index.html b/dist/index.html index f6aaf9e4..52590951 100644 --- a/dist/index.html +++ b/dist/index.html @@ -76,6 +76,7 @@ window.onload = function() { const ui = SwaggerUIBundle({ url: "http://petstore.swagger.io/v2/swagger.json", dom_id: '#swagger-ui', + deepLinking: true, presets: [ SwaggerUIBundle.presets.apis, SwaggerUIStandalonePreset