From 534adcb7c4888d7182c6bba7a9f7e0c5722068e1 Mon Sep 17 00:00:00 2001 From: SidneyAllen Date: Tue, 13 Aug 2019 16:26:27 -0700 Subject: [PATCH] Fix identityAPI to include authorization header --- lib/Api/IdentityApi.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Api/IdentityApi.php b/lib/Api/IdentityApi.php index f42a5457..30a17fa6 100644 --- a/lib/Api/IdentityApi.php +++ b/lib/Api/IdentityApi.php @@ -320,6 +320,10 @@ protected function getConnectionsRequest() } } + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) {