Okay, so in my instance I am running on an Oracle VM with projects turned on, though I am not using Docker.
What I found is that when requiring the security.js file inside uiblib.js it returned null. The file could be reached because otherwise it would throw some exception saying that this in not a module. So i looked at the security.js file and it turns out that it was not able to run this line:
const TYPEDEFS = require('../../typedefs.js')
Because there was no such file. So i copied the typedefs.js over to my project's folder and now this part is solved. I'm now able to return that object with message and userValidated = true.
Don't know about the JWT yet. I will now continue in implementing the security using Julian's documentation.
I''ll let you know if i come across any other issues.
Adam
Also,this is the requested Node-RED log
22 Apr 09:38:54 - [info] Node-RED version: v1.2.9
22 Apr 09:38:54 - [info] Node.js version: v12.21.0
22 Apr 09:38:54 - [info] Linux 5.4.17-2036.103.3.1.el7uek.x86_64 x64 LE
22 Apr 09:38:55 - [info] Loading palette nodes
22 Apr 09:38:56 - [info] +-----------------------------------------------------
22 Apr 09:38:56 - [info] | uibuilder initialised:
22 Apr 09:38:56 - [info] | root folder: /home/opc/.node-red/projects/Visualization_platform/uibuilder
22 Apr 09:38:56 - [info] | version . .: 3.2.1
22 Apr 09:38:56 - [info] | packages . : jquery,socket.io,vue,bootstrap-vue,bootstrap,vue-router,http-vue-loader,chart.js,vue-svg-gauge,vue-browser-geolocation
22 Apr 09:38:56 - [info] +-----------------------------------------------------
22 Apr 09:38:57 - [info] Worldmap version 2.9.0
22 Apr 09:38:57 - [info] Dashboard version 2.28.1 started at /ui
22 Apr 09:38:57 - [info] Settings file : /home/opc/.node-red/settings.js
22 Apr 09:38:57 - [info] Context store : 'default' [module=memory]
22 Apr 09:38:57 - [info] User directory : /home/opc/.node-red
22 Apr 09:38:57 - [info] Server now running at https://127.0.0.1:1880/
22 Apr 09:38:57 - [info] Active project : Visualization_platform