Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ private static void addBaseCookies(final LoginCmdResponse loginResponse, final H
resp.addCookie(newCookie(domain, path,"isSAML", URLEncoder.encode("true", HttpUtils.UTF_8)));
resp.addCookie(newCookie(domain, path,"twoFaEnabled", URLEncoder.encode(loginResponse.is2FAenabled(), HttpUtils.UTF_8)));
resp.addCookie(newCookie(domain, path,"userfullname", URLEncoder.encode(loginResponse.getFirstName() + " " + loginResponse.getLastName(), HttpUtils.UTF_8).replace("+", "%20")));
if (StringUtils.isNotBlank(loginResponse.getManagementServerId())) {
resp.addCookie(new Cookie(ApiConstants.MANAGEMENT_SERVER_ID, URLEncoder.encode(loginResponse.getManagementServerId(), HttpUtils.UTF_8)));
}
}

private static Cookie newCookie(final String domain, final String path, final String name, final String value) {
Expand Down
1 change: 1 addition & 0 deletions ui/src/permission.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ router.beforeEach((to, from, next) => {
return
}
store.commit('SET_LOGIN_FLAG', true)
store.commit('SET_MS_ID', Cookies.get('managementserverid'))
}
if (Object.keys(store.getters.apis).length === 0) {
const cachedApis = vueProps.$localStorage.get(APIS, {})
Expand Down
Loading