Skip to content

Commit 83085b5

Browse files
committed
add user hadoop to cookie
1 parent 2e1eb79 commit 83085b5

File tree

1 file changed

+1
-1
lines changed
  • dss-framework/dss-framework-workspace-server/src/main/java/com/webank/wedatasphere/dss/framework/workspace/restful

1 file changed

+1
-1
lines changed

dss-framework/dss-framework-workspace-server/src/main/java/com/webank/wedatasphere/dss/framework/workspace/restful/DSSWorkspaceRestful.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ public Message getWorkspacesById(@PathVariable("id") Long workspaceId) {
364364
SSOHelper.setAndGetWorkspace(httpServletRequest, httpServletResponse, workspace.getId(), workspace.getName());
365365

366366
Set<String> allUsernames = staffInfoGetter.getAllUsernames();
367-
if(allUsernames.contains(username)) {
367+
if(allUsernames.contains(username) || "hadoop".equals(username)) {
368368
SSOHelper.addUsernameCookie(httpServletRequest, httpServletResponse, username);
369369
}else{
370370
SSOHelper.deleteCookieByName(httpServletRequest, httpServletResponse, USERNAME_NAME_COOKIE_KEY);

0 commit comments

Comments
 (0)