Send redirect url when authenticating with oauth2-authorization_code

also fix indentations of files
This commit is contained in:
Furkan Ayhan
2017-05-08 10:52:19 +03:00
parent d64e920665
commit 0c7119e855
3 changed files with 52 additions and 45 deletions

View File

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