Problem/Motivation

I was following the documentaion from the project page how to use the password grant but it didn't work until I also pass the scope.

{
  "grant_type": "password",
  "client_id": "__your-client-id__",
  "client_secret": "__your-client-secret__",
  "username": "drupal_username_or_email",
  "password": "drupal_password"
}

Proposed resolution

Update the documentation to also pass the scope in the payload. For example:

{
  "grant_type": "password",
  "client_id": "__your-client-id__",
  "client_secret": "__your-client-secret__",
  "username": "drupal_username_or_email",
  "password": "drupal_password",
  "scope": "__scope-name__",
}
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

usmanjutt84 created an issue. See original summary.

usmanjutt84’s picture

Title: Update the documentation » Update the documentation to setup palyload
Issue summary: View changes

usmanjutt84’s picture

Status: Active » Needs review

I have update the README.md file and created the MR.