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",