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

Duplicate scope data in POST request for UMA 2.0 Guide, Procedure 2.7

    Details

    • Needs backport:
      No
    • Support Ticket IDs:
    • Needs QA verification:
      No
    • Functional tests:
      No
    • Are the reproduction steps defined?:
      No (add reasons in the comment)

      Description

      Bug description

      There is a duplicate data in the documentation for UMA 2.0 Guide, Procedure 2.7 To Acquire a Protection API Token

      How to reproduce the issue

      1. To Acquire PAT ( Procedure 2.7 in UMA 2.0 Guide documentation)
      Expected behaviour

      The expected would be user would just need to enter " --data 'scope=uma_protection' " once to get the access token.

      curl \
        --request POST \
        --data 'grant_type=password' \
        --data 'username=alice' \
        --data 'password=password' \
        --data 'scope=uma_protection' \
        --data 'client_id=UMA-Resource-Server' \
        --data 'client_secret=password' \
        https://openam.example.com:8443/openam/oauth2/realms/root/realms/subrealm/access_token
      
      {
        "access_token": "057ad16f-7dba-4049-9f34-e609d230d43a",
        "refresh_token": "340f82a4-9aa9-471c-ac42-f0ca1809c82b",
        "scope": "uma_protection",
        "token_type": "Bearer",
        "expires_in": 4999
      }
      
      Current behaviour

      There is two same " --data 'scope=uma_protection' " in the request. It would still generate an access token.

      curl \
        --request POST \
        --data 'grant_type=password' \
        --data 'scope=uma_protection' \
        --data 'username=alice' \
        --data 'password=password' \
        --data 'scope=uma_protection' \
        --data 'client_id=UMA-Resource-Server' \
        --data 'client_secret=password' \
        https://openam.example.com:8443/openam/oauth2/realms/root/realms/subrealm/access_token
      
      {
        "access_token": "057ad16f-7dba-4049-9f34-e609d230d43a",
        "refresh_token": "340f82a4-9aa9-471c-ac42-f0ca1809c82b",
        "scope": "uma_protection",
        "token_type": "Bearer",
        "expires_in": 4999
      }
      

       

        Attachments

          Activity

            People

            • Assignee:
              austingene Gene Hirayama
              Reporter:
              wanning.tan WanNing Tan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: