Renamed authorizeAccessCodeWithQueryParams->authorizeAccessCodeWithFormParams
since that is technically correct
This commit is contained in:
@@ -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 = {
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user