Question David.Satorres6134 · Oct 7, 2024

I can't get to work WebTerminal in IRIS Health Connect 2023.1

Hello everybody,

I’m trying to install WebTerminal but I’m not able to have it working. I’ve looked all around the in github and the community but no-one seems to have the same problem. So I hope sharing this someone can give me a hint
So, I’m installing it on IRIS HEALTH:

IRIS for UNIX (Red Hat Enterprise Linux 8 for x86-64) 2023.1.3 (Build 517U) Wed Jan 10 2024 13:30:33 EST [Health:5.1.0-2.m3] 

I install the packageWebTerminal-v4.9.5.xml via Portal Manager and all goes fine:

Importing Selected Classes from /intersystems/prog/IRISHEALTH/mgr/Temp/importfromlocal.stream
Import to Namespace %SYS.
Load started on 10/03/2024 16:55:52
Loading file /intersystems/prog/IRISHEALTH/mgr/Temp/importfromlocal.stream as xml
Imported class: WebTerminal.Analytics
Imported class: WebTerminal.Autocomplete
Imported class: WebTerminal.Common
Imported class: WebTerminal.Core
Imported class: WebTerminal.Engine
Imported class: WebTerminal.ErrorDecomposer
Imported class: WebTerminal.Handlers
Imported class: WebTerminal.Installer
Imported class: WebTerminal.Router
Imported class: WebTerminal.StaticContent
Imported class: WebTerminal.Trace
Imported class: WebTerminal.Updater
Compiling 12 classes
Compiling class WebTerminal.Analytics
Compiling class WebTerminal.Common
Compiling class WebTerminal.ErrorDecomposer
Compiling class WebTerminal.StaticContent
Compiling class WebTerminal.Handlers
Compiling class WebTerminal.Updater
Compiling class WebTerminal.Autocomplete
Compiling class WebTerminal.Core
Compiling class WebTerminal.Trace
Compiling class WebTerminal.Router
Compiling class WebTerminal.Engine
Compiling routine WebTerminal.Common.1
Compiling routine WebTerminal.ErrorDecomposer.1
Compiling routine WebTerminal.Analytics.1
Compiling routine WebTerminal.StaticContent.1
Compiling routine WebTerminal.Updater.1
Compiling routine WebTerminal.Handlers.1
Compiling routine WebTerminal.Core.1
Compiling routine WebTerminal.Autocomplete.1
Compiling routine WebTerminal.Trace.1
Compiling routine WebTerminal.Router.1
Compiling routine WebTerminal.Engine.1
Recompiling WebTerminal, skipping the deletion...
Compiling class WebTerminal.Installer
Compiling routine WebTerminal.Installer.1
Installing WebTerminal application to %SYS
Updating web application "/terminal"...
WEB application "/terminal" is updated.
Assigning role %DB_IRISSYS to a web application; resulting roles: :%DB_IRISSYS
Updating web application "/terminalsocket"...
WEB application "/terminalsocket" is updated.
Mapping %WebTerminal package into all namespaces: %All
WebTerminal package successfully mapped into all namespaces.
Load finished successfully.

So, everything seems ok as /terminal and /terminalsocket applications are correctly created. But when I try to access to the port 52773 (the one on the setup) and /terminal/ I get a 401 error. In the Audit I can see it’s using UnknownUser do it can’t log in:

 

Error message: ERROR #864: An authenticated user name is required.
Web Application: /terminal
$I: |TCP|51773|3894836
$P: |TCP|51773|3894836

 

 

 

I’m confused, because if /terminal is set up as password it should not be UnknownUser right?

I’ve checked the Gateway and it uses CSPSystem to connect. So, I don’t really know what is going on as I’ve installed it in the past with no problem.

Might it be a problem with IRIS version? Anyone has had the same or similar issue?

Product version: IRIS 2023.1
$ZV: IRIS for UNIX (Red Hat Enterprise Linux 8 for x86-64) 2023.1.3 (Build 517U) Wed Jan 10 2024 13:30:33 EST [Health:5.1.0-2.m3]

Comments

Jose-Tomas Salvador · Oct 7, 2024

It seems that you're not providing an IRIS user... and the app is configured to ask for password. Don't you get the login screen asking for user/password?

0
David.Satorres6134  Oct 7, 2024 to Jose-Tomas Salvador

No, I don't get anything. Simply error 401 and then in the audit I can see how it has automatically taken UnknowUser on it own :)

0
John Murray  Oct 7, 2024 to David.Satorres6134

Does it also happen if you use a private browser session?

0
David.Satorres6134  Oct 7, 2024 to John Murray

wow! Using a private session works :-O All the testing I did, and never tried out with that.

So, is it then related to cookies?

0
John Murray  Oct 7, 2024 to David.Satorres6134

Yes, maybe the Management Portal login on the server allows Unauthenticated.

0
Kirsten Whatley · Oct 15, 2024

In our env, we have Session Cookie Scope set to "None". 

For authentication, we use LDAP and we have to have "Delegated" checked 

If Delegated is not an option, this is how you make that option appear:

  • System Administration / Security / System Security / Authentication/Web Session Options -setting is: Allow Delegated authentication

0
David.Satorres6134  Oct 20, 2024 to Kirsten Whatley

Hi Kirsten,

Thanks for this. But still doesn't work, I get same error:

Error message: ERROR #864: An authenticated user name is required.
Web Application: /terminal
$I: |TCP|51773|134694
$P: |TCP|51773|134694

Weirdly, with Firefox I'm able to get the auth dialog. I suspect it is related to browser (Edge doesn't work) as I've removed all cookies and cleaned the cache :(

0
John Murray  Oct 21, 2024 to David.Satorres6134

David, if you point your Edge to edge://policy/ does it report an AuthSchemes policy value?

0
David.Satorres6134  Oct 22, 2024 to John Murray

Hi, yes it does! Current values are "ntlm,negotiate". I can't change it to any other value, though.. this is managed by the organisation

0