summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2011-09-30 12:08:19 +0100
committerMark McLoughlin <markmc@redhat.com>2011-09-30 15:58:19 +0100
commit40a507d1a46b78f43c2cb628ae2acced46432e9f (patch)
tree2fd2fd3470d879bd06eaaaa3103abcf036056824
parent8948d10db417b13d6f3c07ad0d77b70c21a87498 (diff)
Update auth examples in README
The format was changed by commit 012b2125f. Change-Id: Ifb4b171b45d643153a0306f701d22149859c14a7
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index c18f1846..8d0b7d26 100644
--- a/README.md
+++ b/README.md
@@ -201,15 +201,15 @@ in troubleshooting:
<pre>
# Get an unscoped token
- $ curl -d '{"passwordCredentials": {"username": "joeuser", "password": "secrete"}}' -H "Content-type: application/json" http://localhost:5000/v2.0/tokens
+ $ curl -d '{"auth": {"passwordCredentials": {"username": "joeuser", "password": "secrete"}}}' -H "Content-type: application/json" http://localhost:5000/v2.0/tokens
# Get a token for a tenant
- $ curl -d '{"passwordCredentials": {"username": "joeuser", "password": "secrete", "tenantName": "customer-x"}}' -H "Content-type: application/json" http://localhost:5000/v2.0/tokens
+ $ curl -d '{"auth": {"passwordCredentials": {"username": "joeuser", "password": "secrete"}, "tenantName": "customer-x"}}' -H "Content-type: application/json" http://localhost:5000/v2.0/tokens
# Get an admin token
- $ curl -d '{"passwordCredentials": {"username": "admin", "password": "secrete"}}' -H "Content-type: application/json" http://localhost:5001/v2.0/tokens
+ $ curl -d '{"auth": {"passwordCredentials": {"username": "admin", "password": "secrete"}}}' -H "Content-type: application/json" http://localhost:5001/v2.0/tokens
</pre>
#### Load Testing
@@ -217,7 +217,7 @@ in troubleshooting:
<pre>
# Create post data
- $ echo '{"passwordCredentials": {"username": "joeuser", "password": "secrete", "tenantName": "customer-x"}}' > post_data
+ $ echo '{"auth": {"passwordCredentials": {"username": "joeuser", "password": "secrete", "tenantName": "customer-x"}}}' > post_data
# Call Apache Bench