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

No debug information shown in Authentication or OAuth2Provider when incorrect endpoint used

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 12.0.2
    • Fix Version/s: 14.0.0
    • Component/s: oauth2
    • Labels:
    • Target Version/s:
    • Rank:
      1|hzl2f3:
    • Support Ticket IDs:

      Description

      Setup an OAuth2 environment with provider and client.

      Set debug level to Message.

      Send the following request with incorrect endpoint:

      curl --request POST --user "myOAuth2Client:oauth2client" --data "grant_type=password&username=demo&password=changeit&scope=cn" http://oauth2provider.example.net:48080/openam/oauth2/authorize

      Returns:

      Empty Authentication and OAuth2Povider debug logs.

      Send the following request with correct endpoint:

      curl --request POST --user "myOAuth2Client:oauth2client" --data "grant_type=password&username=demo&password=changeit&scope=cn" http://oauth2provider.example.net:48080/openam/oauth2/access_token

      Returns:

      Populated Authentication and OAuth2Provider debug logs

      Expected result:
      Logs should at least mention the attempted request, and preferably a hint as to why it failed.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              joe.starling Joe Starling
              Reporter:
              jdewer James Dewer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 4h
                  4h