From badfea61c3deae549b5d5a26a967b2e4a2efc5ef Mon Sep 17 00:00:00 2001 From: Eric Turcotte Date: Thu, 13 Jul 2017 10:53:36 -0500 Subject: [PATCH] Renamed authorizeAccessCodeWithQueryParams->authorizeAccessCodeWithFormParams since that is technically correct --- src/core/oauth2-authorize.js | 2 +- src/core/plugins/auth/actions.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/oauth2-authorize.js b/src/core/oauth2-authorize.js index 06935357..f09d379c 100644 --- a/src/core/oauth2-authorize.js +++ b/src/core/oauth2-authorize.js @@ -75,7 +75,7 @@ export default function authorize ( { auth, authActions, errActions, configs, au } else if (authConfigs.useBasicAuthenticationWithAccessCodeGrant) { callback = authActions.authorizeAccessCodeWithBasicAuthentication } else { - callback = authActions.authorizeAccessCodeWithQueryParams + callback = authActions.authorizeAccessCodeWithFormParams } win.swaggerUIRedirectOauth2 = { diff --git a/src/core/plugins/auth/actions.js b/src/core/plugins/auth/actions.js index 5524413e..dfd2ea04 100644 --- a/src/core/plugins/auth/actions.js +++ b/src/core/plugins/auth/actions.js @@ -111,7 +111,7 @@ export const authorizeApplication = ( auth ) => ( { authActions } ) => { return authActions.authorizeRequest({body: buildFormData(form), name, url: schema.get("tokenUrl"), auth, headers }) } -export const authorizeAccessCodeWithQueryParams = ( { auth, redirectUrl } ) => ( { authActions } ) => { +export const authorizeAccessCodeWithFormParams = ( { auth, redirectUrl } ) => ( { authActions } ) => { let { schema, name, clientId, clientSecret } = auth let form = { grant_type: "authorization_code",