From bf037c3fff803c1e02be8aa5c9ae2c67e8f6ad2c Mon Sep 17 00:00:00 2001 From: Tasha Alfano Date: Thu, 27 Oct 2022 19:12:41 -0600 Subject: [PATCH] update http api index file Updating the base64 encoding example --- .../sources/catalog/libraries/server/http-api/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connections/sources/catalog/libraries/server/http-api/index.md b/src/connections/sources/catalog/libraries/server/http-api/index.md index 6c2b11cf4a..54a521c382 100644 --- a/src/connections/sources/catalog/libraries/server/http-api/index.md +++ b/src/connections/sources/catalog/libraries/server/http-api/index.md @@ -14,7 +14,7 @@ Segment has native [sources](/docs/connections/sources/) for most use cases (lik Authenticate to the Tracking API by sending your project's **Write Key** along with a request. Authentication uses HTTP Basic Auth, which involves a `username:password` that is base64 encoded and prepended with the string `Basic`. -In practice that means taking a Segment source **Write Key**,`'abc123'`, as the username, adding a colon, and then the password field is left empty. After base64 encoding `'abc123:'` becomes `'YWJjMTIzOg=='`; and this is passed in the authorization header like so: `'Authorization: Basic YWJjMTIzOg=='`. +In practice that means taking a Segment source **Write Key**,`'abc123'`, as the username, adding a colon, and then the password field is left empty. After base64 encoding `'abc123'` becomes `'YWJjMTIz'`; and this is passed in the authorization header like so: `'Authorization: Basic YWJjMTIz'`. ### Content-Type