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

Issues around Accept header request after upgrading to 7.x

    XMLWordPrintable

    Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not a defect
    • 7.1.0
    • None
    • rest
    • Rank:
      1|i059ou:

      Description

      Bug description

      Accept header request in previous versions of AM use to accept a formatting of application/*+json but in AM 7.1 this is not accepted even though application/json is.

      How to reproduce the issue

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

      1. Create a Oauth2Client
      2. Run a password flow for example to get a Access token for introspection later
      3. Do an introspect on the access token
        curl -s \
           -X POST \
            --user ${client_id}:${client_secret} \
           -H "Accept: application/*+json" \
           -H "Content-Type: application/x-www-form-urlencoded" \
           --data "token=$ACCESSTOKEN" \
           --data "token_type_hint=access_token" \
           "$AuthS/openam/oauth2/introspect?realm=${realm}"  

        Expected behaviour

      Rest call should be successful
      Current behaviour
      REST Call fails

      Work around

      Use application/json for Accept

        Attachments

          Issue Links

            Activity

              People

              Unassigned Unassigned
              abel.hoxeng Abel Hoxeng
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: