Skip to content

Commit 96d0fdc

Browse files
committed
Merge pull request #174 from diraol/patch-1
Improving curl example
2 parents 4229300 + e3410bd commit 96d0fdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rest-framework/getting_started.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ At this point we're ready to request an access_token. Open your shell
126126

127127
::
128128

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

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

0 commit comments

Comments
 (0)