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

ERROR: OAuth2Monitor: Unable to increment "oauth2.grant" metric for unknown grant type BACK_CHANNEL

    XMLWordPrintable

    Details

    • Sprint:
      AM Sustaining Sprint 70
    • Story Points:
      2
    • Needs backport:
      Yes
    • Support Ticket IDs:

      Description

      Bug description

      Following error shows in the debug logs after (successfully) performing the CIBA flow:

      ERROR: OAuth2Monitor: Unable to increment "oauth2.grant" metric for unknown grant type BACK_CHANNEL

      How to reproduce the issue

      Details steps outlining how to recreate the issue (remove this text)

      1. Implement Client Initiated Backchannel Authentication (CIBA) flow
      Expected behaviour
      No errors should be present in the logs.
      Current behaviour
      ERROR: OAuth2Monitor: Unable to increment "oauth2.grant" metric for unknown grant type BACK_CHANNEL - error present in logs.
      

      Work around

      N/A

      Code analysis

      OPTIONAL - If you already investigated the code, please share your finding here (remove this text)

      org.forgerock.OAuth2Monitor.java
      The BACK_CHANNEL GrantType was added as part of AME-17776 and it appears that a case for this has not been added in the switch statement there, so it’s falling into the default case.
      

        Attachments

          Activity

            People

            Assignee:
            adam.heath Adam Heath
            Reporter:
            alex.stan Alexandru Stan [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: