Skip to content

Commit

Permalink
Fix identityAPI to include authorization header
Browse files Browse the repository at this point in the history
  • Loading branch information
SidneyAllen committed Aug 13, 2019
1 parent fd8dc51 commit 534adcb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Api/IdentityApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 534adcb

Please sign in to comment.