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

OAuth2 Password grant_type flow ignores username and password url params

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not a defect
    • Affects Version/s: 13.0.0
    • Fix Version/s: None
    • Component/s: oauth2
    • Environment:
      28/10/15 SNAPSHOT
    • Rank:
      1|hzqeuf:

      Description

      When you use the password grant_type flow to access the authorization endpoint, you can pass a username and password value to the endpoint, this should authenticate the user so you do not hit a login page, however you still are made to authenticate through the login page.

      url used:

      http://amrwalktest.internal.forgerock.com:8080/openam/oauth2/authorize?client_id=client&client_secret=password&username=demo&password=changeit&response_type=token id_token&redirect_uri=http://example.com/openam&scope=cn mail
      

      Reproduction:
      1. create simple oauth2 provider and client with scopes and claims of cn & mail and simple display name and redirect_uri.
      2. open incognito window.
      3. access authorize endpoint with password grant flow, and user credentials.
      4. observe as you are taken to datastore login.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              amrwalk Alex Walker [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: