Renamed authorizeAccessCodeWithQueryParams->authorizeAccessCodeWithFormParams

since that is technically correct
This commit is contained in:
Eric Turcotte
2017-07-13 10:53:36 -05:00
parent b06971bf81
commit badfea61c3
2 changed files with 2 additions and 2 deletions

View File

@@ -75,7 +75,7 @@ export default function authorize ( { auth, authActions, errActions, configs, au
} else if (authConfigs.useBasicAuthenticationWithAccessCodeGrant) { } else if (authConfigs.useBasicAuthenticationWithAccessCodeGrant) {
callback = authActions.authorizeAccessCodeWithBasicAuthentication callback = authActions.authorizeAccessCodeWithBasicAuthentication
} else { } else {
callback = authActions.authorizeAccessCodeWithQueryParams callback = authActions.authorizeAccessCodeWithFormParams
} }
win.swaggerUIRedirectOauth2 = { win.swaggerUIRedirectOauth2 = {

View File

@@ -111,7 +111,7 @@ export const authorizeApplication = ( auth ) => ( { authActions } ) => {
return authActions.authorizeRequest({body: buildFormData(form), name, url: schema.get("tokenUrl"), auth, headers }) 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 { schema, name, clientId, clientSecret } = auth
let form = { let form = {
grant_type: "authorization_code", grant_type: "authorization_code",