abstract class Authentication in RESTful 7.2
Same name in this branch
- 7.2 src/Annotation/Authentication.php \Drupal\restful\Annotation\Authentication
- 7.2 src/Plugin/authentication/Authentication.php \Drupal\restful\Plugin\authentication\Authentication
Hierarchy
- class \Drupal\restful\Plugin\authentication\Authentication extends \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\ConfigurablePluginInterface, AuthenticationInterface uses ConfigurablePluginTrait
Expanded class hierarchy of Authentication
1 file declares its use of Authentication
- TokenAuthentication.php in modules/
restful_token_auth/ src/ Plugin/ authentication/ TokenAuthentication.php - Contains \Drupal\restful_token_auth\Plugin\authentication\TokenAuthentication
1 string reference to 'Authentication'
File
- src/
Plugin/ authentication/ Authentication.php, line 15 - Contains \Drupal\restful\Plugin\authentication\Authentication
Namespace
Drupal\restful\Plugin\authenticationView source
abstract class Authentication extends PluginBase implements ConfigurablePluginInterface, AuthenticationInterface {
use ConfigurablePluginTrait;
/**
* Token value for token generation functions.
*/
const TOKEN_VALUE = 'rest';
/**
* Settings from the plugin definition.
*
* @var array
*/
protected $settings;
/**
* {@inheritdoc}
*/
public function applies(RequestInterface $request) {
// By default assume that the request can be checked for authentication.
return TRUE;
}
/**
* {@inheritdoc}
*/
public function getName() {
return $this
->getPluginId();
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Authentication:: |
protected | property | Settings from the plugin definition. | |
Authentication:: |
public | function |
Determines if the request can be checked for authentication. For example,
when authenticating with HTTP header, return FALSE if the header values do
not exist. Overrides AuthenticationInterface:: |
3 |
Authentication:: |
public | function |
Get the name of the authentication plugin. Overrides AuthenticationInterface:: |
|
Authentication:: |
constant | Token value for token generation functions. | ||
AuthenticationInterface:: |
public | function | Authenticate the request by trying to match a user. | 4 |
ConfigurablePluginTrait:: |
protected | property | Plugin instance configuration. | |
ConfigurablePluginTrait:: |
public | function | ||
ConfigurablePluginTrait:: |
public | function | 1 | |
ConfigurablePluginTrait:: |
public | function | ||
ConfigurablePluginTrait:: |
public | function |