You are here

public function AcquiaDAM_Client::authenticate in Media: Acquia DAM 7

Authenticate the client.

Parameters

bool $allowRedirect: TRUE to allow redirection. Used for server side authentication.

Return value

string|null The authentication token or NULL.

See also

\OAuth2\Client::getAccessToken

1 call to AcquiaDAM_Client::authenticate()
AcquiaDAM_Client::getToken in src/AcquiaDAM/AcquiaDAM_Client.inc
Get the authroization token information.

File

src/AcquiaDAM/AcquiaDAM_Client.inc, line 90

Class

AcquiaDAM_Client
Client for making API requests.

Code

public function authenticate($allowRedirect = TRUE) {
  return $this->oauth2Client
    ->getAccessToken($allowRedirect);
}