Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Recommended use

...

The diagram below illustrates the resource owner password credentials grant flow.

Support for refresh token grant - Yes

The cURL commands below can be used to try this grant type.

Code Block
languagepowershell
curl -v -X POST -H "Authorization: Basic <base64 encoded client id:client secret value>" -k -d "grant_type=password&username=<username>&password=<password>" -H "Content-Type:application/x-www-form-urlencoded" https://localhost:9443/oauth2/token

Or

Code Block
languagepowershell
curl -u <client id>:<client secret> -k -d "grant_type=password&username=<username>&password=<password>" -H "Content-Type:application/x-www-form-urlencoded" https://localhost:9443/oauth2/token

...