#2844 fix accessCode flow

This commit is contained in:
Anna Bodnia
2017-04-27 18:55:25 +03:00
parent 210b20eea8
commit d013e7a05c
7 changed files with 73 additions and 120 deletions

View File

@@ -45,7 +45,7 @@ export default function authorize ( auth, authActions, errActions, configs ) {
win.swaggerUIRedirectOauth2 = {
auth: auth,
state: state,
callback: authActions.preAuthorizeOauth2,
callback: flow === "implicit" ? authActions.preAuthorizeImplicit : authActions.authorizeAccessCode,
errCb: errActions.newAuthErr
}