From 1c284a1fe7b6a83e2b743fa219c0cce119f7fdf4 Mon Sep 17 00:00:00 2001 From: Kelly Dunn Date: Mon, 28 Sep 2020 17:04:40 -0700 Subject: [PATCH] Updating docs to indicate correct Authorization Header for Signed URL requests --- products/stream/src/content/security/signed-urls.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/products/stream/src/content/security/signed-urls.md b/products/stream/src/content/security/signed-urls.md index a44c321976d6de..4d50e05041a8a9 100644 --- a/products/stream/src/content/security/signed-urls.md +++ b/products/stream/src/content/security/signed-urls.md @@ -19,7 +19,7 @@ You can [revoke a key](#revoking-keys) anytime for any reason. Upon creation you will get a RSA private key in PEM and JWK formats. Keys are created, used and deleted independently of videos. Every key can sign any of your videos. ```javascript -// curl -X POST -H "X-Auth-Email: ${EMAIL}" -H "X-Auth-Key: ${API-KEY}" "https://api.cloudflare.com/client/v4/accounts/{account_id}/stream/keys" +// curl -X POST -H "X-Auth-Email: ${EMAIL}" -H "Authorization: Bearer ${API-KEY}" "https://api.cloudflare.com/client/v4/accounts/{account_id}/stream/keys" { "result": { @@ -42,7 +42,7 @@ Restricting viewing can be done by updating the video's metadata. ```javascript -// curl -X POST -H "X-Auth-Email: ${EMAIL}" -H "X-Auth-Key: ${API-KEY}" "https://api.cloudflare.com/client/v4/accounts/{account_id}/stream/{VIDEO-ID}" -H "Content-Type: application/json" -d '{"uid": "{VIDEO-ID}", "requireSignedURLs": true }' +// curl -X POST -H "X-Auth-Email: ${EMAIL}" -H "Authorization: Bearer ${API-KEY}" "https://api.cloudflare.com/client/v4/accounts/{account_id}/stream/{VIDEO-ID}" -H "Content-Type: application/json" -d '{"uid": "{VIDEO-ID}", "requireSignedURLs": true }' { "result": { @@ -137,7 +137,7 @@ You can create up to 1,000 keys and rotate them at your convenience. Once revoked all tokens created with that key will be invalidated. ```javascript -// curl -X DELETE -H "X-Auth-Email: ${EMAIL}" -H "X-Auth-Key: ${API-KEY}" "https://api.cloudflare.com/client/v4/accounts/{account_id}/stream/keys/{KEY-ID}" +// curl -X DELETE -H "X-Auth-Email: ${EMAIL}" -H "Authorization: Bearer ${API-KEY}" "https://api.cloudflare.com/client/v4/accounts/{account_id}/stream/keys/{KEY-ID}" { "result": "Revoked",