abstract class OAuth2Manager in Social Auth 8
Same name and namespace in other branches
- 8.2 src/AuthManager/OAuth2Manager.php \Drupal\social_auth\AuthManager\OAuth2Manager
- 3.x src/AuthManager/OAuth2Manager.php \Drupal\social_auth\AuthManager\OAuth2Manager
Defines a basic OAuth2Manager.
@package Drupal\social_auth
Hierarchy
- class \Drupal\social_auth\AuthManager\OAuth2Manager implements OAuth2ManagerInterface
Expanded class hierarchy of OAuth2Manager
File
- src/
AuthManager/ OAuth2Manager.php, line 10
Namespace
Drupal\social_auth\AuthManagerView source
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;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
OAuth2Manager:: |
protected | property | Access token for OAuth2 authentication. | |
OAuth2Manager:: |
protected | property | The service client. | |
OAuth2Manager:: |
public | function |
Gets the access token after authentication. Overrides OAuth2ManagerInterface:: |
|
OAuth2Manager:: |
public | function |
Gets the service client object. Overrides OAuth2ManagerInterface:: |
|
OAuth2Manager:: |
public | function |
Sets the default access token. Overrides OAuth2ManagerInterface:: |
|
OAuth2Manager:: |
public | function |
Sets the service client. Overrides OAuth2ManagerInterface:: |
|
OAuth2ManagerInterface:: |
public | function | Authenticates the users by using the access token. |