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

TokenInfo endpoint doesn't work for Stateless tokens

    Details

      Description

      on AM Full version: OpenAM 14.0.0-SNAPSHOT Build 1fabde9223 (2016-November-17 00:16)
      Request

      curl -X GET -H "Cache-Control: no-cache" -H "Postman-Token: 84a18ecd-bf3a-4483-c6d3-9924a1401e52" "http://brie.internal.forgerock.com:8080/openam/oauth2/tokeninfo?access_token=eyJ0eXAiOiJKV1QiLCJ6aXAiOiJOT05FIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJ1c2VyLjAiLCJhdWRpdFRyYWNraW5nSWQiOiI1MWEyNWRkMy0yOTljLTQyMTctYTUyMy0wZDkzNzlkMGViZjMiLCJpc3MiOiJodHRwOi8vYnJpZS5pbnRlcm5hbC5mb3JnZXJvY2suY29tOjgwODAvb3BlbmFtL29hdXRoMi9yZWFsbXMvcm9vdC9yZWFsbXMvbXlyZWFsbSIsInRva2VuTmFtZSI6ImFjY2Vzc190b2tlbiIsInRva2VuX3R5cGUiOiJCZWFyZXIiLCJhdXRoR3JhbnRJZCI6IjA3MjhlOWQ3LTdmN2QtNDQ1YS1iNTg3LWNiMjU1OWNiZjBmNSIsImF1ZCI6ImNsaWVudE9JREMiLCJuYmYiOjE0NzkzNzY1MjYsInNjb3BlIjpbIm9wZW5pZCJdLCJhdXRoX3RpbWUiOjE0NzkzNzY1MjYsInJlYWxtIjoiL215cmVhbG0iLCJleHAiOjE0NzkzODAxMjYsImlhdCI6MTQ3OTM3NjUyNiwiZXhwaXJlc19pbiI6MzYwMDAwMCwianRpIjoiNDc5ZGMyOTgtNTkyZS00NmY1LThhMDAtNTRkMTAwMzQ2YmU5In0.QUe_yCmQGR_u87IfAA3jE1Wvfc7HIXAENK4qTzVcsQg"

      Response :

      HTTP response:
      status=
      401 Unauthorized
      headers= 
      X-Frame-Options: SAMEORIGIN
      Date: Thu, 17 Nov 2016 09:44:18 GMT
      Accept-Ranges: bytes
      Server: Restlet-Framework/2.3.4
      Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept
      Content-Type: application/json
      Transfer-Encoding: chunked
      
      body=
      {"error_description":"The access token provided is expired, revoked, malformed, or invalid for other reasons.","error":"invalid_token"}
      20161117 10:45:34.244 - WARN - Request:
      TokenInfo: KO status.find.in(200,304,201,202,203,204,205,206,207,208,209), but actually found 401
      =========================
      

      the endpoint works for stateful tokens as usual

        Attachments

          Activity

            People

            • Assignee:
              ken.stubbings Ken Stubbings
              Reporter:
              narita.saxena Narita Saxena
            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: