Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-10719

Angular requests do not handle 401 responses from the OpenNMS backend

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 24.1.1, 25.0.0
    • Component/s: None
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Sprint:
      Horizon 2019 - May 22nd 2019, Horizon 2019 - May 29th 2019, Horizon 2019 - June 5th 2019

      Description

      If the user navigated on an angular js page which does not refresh periodically automatically, the user's session may expire. If an action of the user triggers an angular js driven $http request the OpenNMS's rest endpoints will return a 401 Unauthorized.
      Each angular application at the moment is handling this as a normal error. Some even retry, but the general behaviour is, that the state is broken and cannot be recovered.

      A general http response interceptor should be implemented which forwards the user to the login page if the OpenNMS ReST endpoint returned a 401 Unauthorized.

      Please keep in mind, that all other requests not to OpenNMS should not be forwarded.

        Attachments

          Activity

            People

            • Assignee:
              mvr Markus von Rüden
              Reporter:
              mvr Markus von Rüden
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: