|
|
|
@ -46,10 +46,7 @@ if (uriMatcher.match("/{context}/api/user/authenticate")) {
|
|
|
|
|
if (log.isDebugEnabled()) {
|
|
|
|
|
log.debug("User Logged In : " + user);
|
|
|
|
|
}
|
|
|
|
|
apiWrapperUtil.setupAccessTokenPair("password", {
|
|
|
|
|
"username": username,
|
|
|
|
|
"password": password
|
|
|
|
|
});
|
|
|
|
|
apiWrapperUtil.setupAccessTokenPairByPasswordGrantType(username, password);
|
|
|
|
|
}, function () {
|
|
|
|
|
response = responseProcessor.buildSuccessResponse(response, 200, {'sessionId': session.getId()});
|
|
|
|
|
});
|
|
|
|
@ -68,7 +65,8 @@ if (uriMatcher.match("/{context}/api/user/authenticate")) {
|
|
|
|
|
if (log.isDebugEnabled()) {
|
|
|
|
|
log.debug("User Logged In : " + user);
|
|
|
|
|
}
|
|
|
|
|
apiWrapperUtil.setupAccessTokenPair("password", {"username": username, "password": password});
|
|
|
|
|
|
|
|
|
|
apiWrapperUtil.setupAccessTokenPairByPasswordGrantType(username, password);
|
|
|
|
|
var permissions = userModule.getUIPermissions();
|
|
|
|
|
if (permissions.VIEW_DASHBOARD) {
|
|
|
|
|
response.sendRedirect(constants.WEB_APP_CONTEXT);
|
|
|
|
|