diff --git a/src/core/plugins/auth/actions.js b/src/core/plugins/auth/actions.js index 7a41a398..876a677d 100644 --- a/src/core/plugins/auth/actions.js +++ b/src/core/plugins/auth/actions.js @@ -139,7 +139,7 @@ export const authorizeAccessCodeWithBasicAuthentication = ( { auth, redirectUrl return authActions.authorizeRequest({body: buildFormData(form), name, url: schema.get("tokenUrl"), auth, headers}) } -export const authorizeRequest = ( data ) => ( { fn, authActions, errActions, authSelectors } ) => { +export const authorizeRequest = ( data ) => ( { fn, getConfigs, authActions, errActions, authSelectors } ) => { let { body, query={}, headers={}, name, url, auth } = data let { additionalQueryStringParams } = authSelectors.getConfigs() || {} let fetchUrl = url @@ -158,7 +158,8 @@ export const authorizeRequest = ( data ) => ( { fn, authActions, errActions, aut method: "post", headers: _headers, query: query, - body: body + body: body, + requestInterceptor: getConfigs().requestInterceptor }) .then(function (response) { let token = JSON.parse(response.data)