OAuth2Manager.php in Social Auth 8
Same filename and directory in other branches
Namespace
Drupal\social_auth\AuthManagerFile
src/AuthManager/OAuth2Manager.phpView source
<?php
namespace Drupal\social_auth\AuthManager;
/**
* Defines a basic OAuth2Manager.
*
* @package Drupal\social_auth
*/
abstract class OAuth2Manager implements OAuth2ManagerInterface {
/**
* The service client.
*
* @var mixed
*/
protected $client;
/**
* Access token for OAuth2 authentication.
*
* @var mixed
*/
protected $accessToken;
/**
* {@inheritdoc}
*/
public function setClient($client) {
$this->client = $client;
return $this;
}
/**
* {@inheritdoc}
*/
public function getClient() {
return $this->client;
}
/**
* {@inheritdoc}
*/
public function getAccessToken() {
return $this->accessToken;
}
/**
* {@inheritdoc}
*/
public function setAccessToken($access_token) {
$this->accessToken = $access_token;
return $this;
}
}
Classes
Name | Description |
---|---|
OAuth2Manager | Defines a basic OAuth2Manager. |