Skip to content

Commit e3410bd

Browse files
committed
Improving curl example
I've removed <client_id> and <client_secret> from the "url" because it could have symbols like "!" and "@" wich makes curl not work ok, so I've used the -u flag to pass the client_di and secret between quotes.
1 parent 5ed4f50 commit e3410bd

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)