Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Authentication in Webvisu

rombo130
2020-11-09
2021-11-08
  • rombo130 - 2020-11-09

    Hello everyone,

    I'm using Webvisu on chromium in kiosk mode to monitor some variables from a screen placed near the Raspberry.
    My problem is that every time I restart the system, the kiosk mode starts but a login window pops up, with the Webvisu loading forever in the background (picture attached). Here, I can login with any of the users added in the 'Users and Groups' tab.
    I need to eliminate this because the system needs to be minimal (no keyboard nor mouse) and it will be used by different operators.

    I noticed that by eliminating completely the User management, it's solved, but this is not an option for me bc I need to keep it.

    Bottom line: how can I disable the need for Webvisu authentication on Codesys?

    Thanks in advance,
    F

     
  • m.prestel - 2020-11-09

    Hey,

    What runtime version are you using?

    Could you please provide your codesyscontrol.cfg?

    Thx

    Best regards,
    Marcel

     
    • rombo130 - 2020-11-09

      Hi Marcel,

      I'm running V3.5.13.0

      Here my CODESYSControl.cfg file:

      [SysFile]
      FilePath.1=/etc/, 3S.dat
      PlcLogicPrefix=1
      
      [CmpLog]
      Logger.0.Name=/tmp/codesyscontrol.log
      Logger.0.Filter=0x0000000F
      Logger.0.Enable=1
      Logger.0.MaxEntries=1000
      Logger.0.MaxFileSize=1000000
      Logger.0.MaxFiles=1
      Logger.0.Backend.0.ClassId=0x00000104 ;writes logger messages in a file
      Logger.0.Type=0x314 ;Set the timestamp to RTC
      
      [CmpSettings]
      FileReference.0=SysFileMap.cfg, SysFileMap
      FileReference.1=/etc/CODESYSControl_User.cfg
      
      [SysExcept]
      Linux.DisableFpuOverflowException=1
      Linux.DisableFpuUnderflowException=1
      Linux.DisableFpuInvalidOperationException=1
      
      [CmpBACnet]
      IniFile=bacstacd.ini
      
      [CmpWebServer]
      ConnectionType=0
      
      [CmpOpenSSL] 
      WebServer.Cert=server.cer 
      WebServer.PrivateKey=server.key 
      WebServer.CipherList=HIGH
      
      [SysMem]
      Linux.Memlock=0
      
      [CmpCodeMeter]
      InitLicenseFile.0=3SLicense.wbb
      
      [SysEthernet]
      Linux.ProtocolFilter=3 
      
      [SysCom]
      Linux.Devicefile=/dev/ttyUSB
      portnum := COM.SysCom.SYS_COMPORT1;
      
      [CmpSchedule]
      ProcessorLoad.Enable=1
      ProcessorLoad.Maximum=95
      ProcessorLoad.Interval=5000
      DisableOmittedCycleWatchdog=1
      
       
  • m.prestel - 2020-11-09

    Hey,
    I am sorry to say, but the option to not require a runtime user login was only added with runtimes >= 3.5.14.0

    Best regards,
    Marcel

     
    πŸ‘
    1
    • cddubya - 2021-11-05

      @m.prestel
      How do you do disable it in higher versions?

       
  • cddubya - 2021-11-05

    @m.prestel
    How do you do disable it in higher versions?

     

    Last edit: cddubya 2021-11-05
    • m.prestel - 2021-11-08

      It is disabled by default.
      If you however require a file service, you have to do a runtime login.

      Best regards,
      Marcel

       
      • cddubya - 2021-11-08

        @m.prestel
        I apologize for not being more clear what my question is. I'm trying to clarify the answer to the original question which is (basically paraphrased...)

        • "how can the User Management be enabled but not required for webvisu only"

        I want to protect my controller against unauthorized downloads/uploads and prevent access to the code but I don't want to require a login for the webvisu pages.

        Is it possible to access the webvisu pages without password or create a user with no password that can access the webvisu pages? If so, how is this done?

         
        • m.prestel - 2021-11-08

          "I want to protect my controller against unauthorized downloads/uploads and prevent access to the code but I don't want to require a login for the webvisu pages."

          If you are using a runtime version >= 3.5.14.0, you should not be required to provide a runtime login.
          This is however the case, if you have one of the following two settings active in your CODESYSControl.cfg:
          AllowFileTransferServices=1
          CallVisuServicesDirectly=0

          Best regards,
          Marcel

           

Log in to post a comment.