From 350ebab161f610e55c4a36b5d52c4a1271d5b617 Mon Sep 17 00:00:00 2001 From: adamscmRH Date: Fri, 20 Apr 2018 14:56:27 -0400 Subject: [PATCH] fix curl example --- docs/auth/oauth.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/auth/oauth.md b/docs/auth/oauth.md index e6f0fc6dad..799c25a503 100644 --- a/docs/auth/oauth.md +++ b/docs/auth/oauth.md @@ -142,8 +142,8 @@ The most common usage of OAuth 2 is authenticating users. The `token` field of a as part of the HTTP authentication header, in the format `Authorization: Bearer `. This _Bearer_ token can be obtained by doing a curl to the `/api/o/token/` endpoint. For example: ``` -curl -ku root:reverse -H "Content-Type: application/json" -X POST \ --d '{"description":"Tower CLI","application":null,"scope":"read"}' \ +curl -ku : -H "Content-Type: application/json" -X POST \ +-d '{"description":"Tower CLI", "application":null, "scope":"write"}' \ https://localhost:8043/api/v2/users/1/personal_tokens/ | python -m json.tool ``` Here is an example of using that PAT to access an API endpoint using `curl`: