Skip to content

Commit

Permalink
Merge pull request #174 from diraol/patch-1
Browse files Browse the repository at this point in the history
Improving curl example
  • Loading branch information
masci committed Jan 7, 2015
2 parents 4229300 + e3410bd commit 96d0fdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rest-framework/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ At this point we're ready to request an access_token. Open your shell

::

curl -X POST -d "grant_type=password&username=<user_name>&password=<password>" http://<client_id>:<client_secret>@localhost:8000/o/token/
curl -X POST -d "grant_type=password&username=<user_name>&password=<password>" -u'<client_id>:<client_secret>' http://localhost:8000/o/token/

The *user_name* and *password* are the credential on any user registered in your :term:`Authorization Server`, like any user created in Step 2.
Response should be something like:
Expand Down

0 comments on commit 96d0fdc

Please sign in to comment.