Authentication.php in RESTful 7.2
Same filename in this branch
Namespace
Drupal\restful\Plugin\authenticationFile
src/Plugin/authentication/Authentication.phpView source
<?php
/**
* @file
* Contains \Drupal\restful\Plugin\authentication\Authentication
*/
namespace Drupal\restful\Plugin\authentication;
use Drupal\Component\Plugin\ConfigurablePluginInterface;
use Drupal\Component\Plugin\PluginBase;
use Drupal\restful\Http\RequestInterface;
use Drupal\restful\Plugin\ConfigurablePluginTrait;
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();
}
}
Classes
Name![]() |
Description |
---|---|
Authentication |