diff options
author | adamscmRH <chadams@redhat.com> | 2018-04-20 20:56:27 +0200 |
---|---|---|
committer | adamscmRH <chadams@redhat.com> | 2018-04-20 21:22:28 +0200 |
commit | 350ebab161f610e55c4a36b5d52c4a1271d5b617 (patch) | |
tree | 6c0c4a9fb3aaa59ec84545d6fa7bd1a243697bdd /docs | |
parent | Merge pull request #1410 from chrismeyersfsu/fix-revert_tower_special_group (diff) | |
download | awx-350ebab161f610e55c4a36b5d52c4a1271d5b617.tar.xz awx-350ebab161f610e55c4a36b5d52c4a1271d5b617.zip |
fix curl example
Diffstat (limited to 'docs')
-rw-r--r-- | docs/auth/oauth.md | 4 |
1 files 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 <token field value>`. 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 <user>:<password> -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`: |