src/Common/Internal/Filters/AuthenticationFilter.php
public function handleRequest(IHttpClient $request)
    {
        $signedKey = $this->_azureAdTokenProvider->getAccessToken();
        $request->setHeader(Resources::AUTHENTICATION, "Bearer " . $signedKey->getAccessToken());

        return $request;
    }
public function handleRequest(IHttpClient $request)
    {
        $signedKey = $this->_azureAdTokenProvider->getAccessToken();
        $request->setHeader(Resources::AUTHENTICATION, "Bearer " . $signedKey->getAccessToken());

        return $request;
    }
public function handleRequest ( IHttpClient $ request ) { $ signedKey = $ this -> _azureAdTokenProvider -> getAccessToken ( ) ; $ request -> setHeader ( Resources :: AUTHENTICATION , "Bearer " . $ signedKey -> getAccessToken ( ) ) ; return $ request ; }
Adds authentication header to the request headers.

@param IHttpClient $request HTTP channel object

@return IHttpClient
Adds authentication header to the request headers .