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