You are here

public function ServicesClientConnectionOAuthAuth::prepareRequest in Services Client 7

Same name and namespace in other branches
  1. 7.2 services_client_connection/modules/services_client_oauth/plugins/ServicesClientConnectionOAuthAuth.inc \ServicesClientConnectionOAuthAuth::prepareRequest()

Implements prepareRequest().

Parameters

ServicesClientConnectionHttpRequest $request:

Overrides ServicesClientConnectionPlugin::prepareRequest

File

services_client_connection/modules/services_client_oauth/plugins/ServicesClientConnectionOAuthAuth.inc, line 95

Class

ServicesClientConnectionOAuthAuth
OAuth authentication support

Code

public function prepareRequest(ServicesClientConnectionHttpRequest &$request) {
  parent::prepareRequest($request);
  if ($this
    ->isAuthorized()) {

    // By default authenticate request before its sent to request plugin
    $this
      ->sign($request);
  }
}