Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Commit

Permalink
Use single quotes around username and password
Browse files Browse the repository at this point in the history
This is to avoid any shell interpretation of special characters.
  • Loading branch information
priteau committed Mar 24, 2014
1 parent e20fc29 commit 5007225
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion phantom/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ she could do the following with curl:

.. sourcecode:: none

$ curl -d "username=alice&password=restaurant" https://phantom.nimbusproject.org/api/dev/token
$ curl -d 'username=alice&password=restaurant' https://phantom.nimbusproject.org/api/dev/token
{"token": "xgy-4h324h2i4h32oi4h23", "user": 1, "success": true}

Then, to use other endpoints, use this user id and token when querying. You can either include the
Expand Down
2 changes: 1 addition & 1 deletion phantom/httpscripting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ must be authenticated using this token. To get this token with curl,
for example, a user 'alice' with the password 'restaurant' would do the following.
Please substitute your username and password for 'alice' and 'restaurant'::

$ curl -d "username=alice&password=restaurant" https://phantom.nimbusproject.org/api/dev/token
$ curl -d 'username=alice&password=restaurant' https://phantom.nimbusproject.org/api/dev/token
{"token": "xgy-4h324h2i4h32oi4h23", "user": 1, "success": true}

For convenience store those values in the following environment variables::
Expand Down
2 changes: 1 addition & 1 deletion stream/streamquickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Now you can create a process definition for this operation. To do so, you can ei
"name": "My Operation"
}
}
$ curl -u username:password -H "Content-Type: application/json" -X POST --data @definition.json http://$PROCESS_REGISTRY_HOST:8081/api/process_definition/
$ curl -u 'username:password' -H "Content-Type: application/json" -X POST --data @definition.json http://$PROCESS_REGISTRY_HOST:8081/api/process_definition/

Now you have created a Stream Operation Appliance!

Expand Down

0 comments on commit 5007225

Please sign in to comment.