Skip to content

Commit 999e8b1

Browse files
Authorization enhance (covers the case when CSP cookie is not set)
1 parent 22134e7 commit 999e8b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

export/WebTerminal/Router.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Method writes application HTML.</Description>
100100
<ClassMethod>1</ClassMethod>
101101
<ReturnType>%Status</ReturnType>
102102
<Implementation><![CDATA[
103-
set cookie = %session.CSPSessionCookie
103+
set cookie = $System.Encryption.Base64Encode(%session.Key)
104104
// Put the name of authorized user in a global to authorize WebSocket WebTerminal connection
105105
set ^WebTerminal("AuthUser", cookie) = $LB(
106106
$LISTGET(%session.SecurityContext, 1), // username

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"title": "Cache WEB Terminal",
44
"description": "Web-based terminal emulator for Caché administering.",
55
"author": "ZitRo",
6-
"version": "3.2.0",
6+
"version": "3.2.1",
77
"releaseNumber": 19,
88
"repository": {
99
"type": "git",

0 commit comments

Comments
 (0)