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

Building the Sample Custom Scope Validator results in an Internal Server Error when the tokeninfo endpoint is called

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 13.5.0, 13.5.1, 14.0.0, 14.1.0
    • Fix Version/s: 14.1.0
    • Component/s: oauth2
    • Labels:
    • Environment:
      Vanilla OpenAM 13.5.0 build
    • Are the reproduction steps defined?:
      Yes and I used the same an in the description

      Description

      When the Custom Scope Validator is deployed tokens create fine. However a hit to the tokeninfo endpoint results in:

      {
       "error_description": "Internal Server Error",
       "error": "server_error"
      }

       This a major issue for anyone trying to create a Custom Scope Validator based on the sample and documentation.

      The Session, Oauth2Provider and oauth2 logs reports:

      could not create SSOToken from HttpRequest (Invalid session ID.)

      CoreSystem:

      Formatted event: "a38f1a2e-7554-4e5c-82a7-eb055937b4db-77","2017-06-15T13:31:35.487Z","AM-ACCESS-OUTCOME","a38f1a2e-7554-4e5c-82a7-eb055937b4db-75","client","[""a38f1a2e-7554-4e5c-82a7-eb055937b4db-72""]","172.16.90.150","8082","172.16.90.1","58972",,,,"false","GET","http://openam.test.com:8082/openam/oauth2/tokeninfo","{}","{""accept"":[""*/*""],""host"":[""openam.test.com:8082""],""user-agent"":[""curl/7.51.0""]}","{}",,"FAILED","400","{""reason"":""The request could not be understood by the server due to malformed syntax""}","15","MILLISECONDS","OAuth","/"
      

      It could perhaps be because request is not being returned in the validate functions.

       This was the call

       

      curl "http://<AM_HOST_AND_PORT>/openam/oauth2/tokeninfo?access_token=<access_token_id" 
      

       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              shokard Darinder Shokar
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: