Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-9064

OAuth2 authentication module IOExceptions are not logged on normal log levels

    XMLWordPrintable

    Details

    • Sprint:
      AM Sustaining Sprint 31
    • Story Points:
      2
    • Support Ticket IDs:

      Description

      The OAuth2 authentication module directly calls the token and profile services in order to get the user data from OAuth2 server. If something goes wrong (such as network error) with these service calls there is no logging of the error on normal log levels. Only with message level debugging the error is logged but doing this is often unfeasible on busy production systems. This makes troubleshooting unnecessarily difficult.

      Adding appropriate debug statements to the catch(IOException) blocks in getContentStreamByGET and getContentStreamByPOST methods goes a long way in making the situation better.

      The line numbers in the attached patch are offset from standard 13.0.0 code.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              peter.major Peter Major [X] (Inactive)
              Reporter:
              jah Jari Ahonen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: