interface AuthenticationProviderInterface in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Authentication/AuthenticationProviderInterface.php \Drupal\Core\Authentication\AuthenticationProviderInterface
Interface for authentication providers.
Hierarchy
- interface \Drupal\Core\Authentication\AuthenticationProviderInterface
Expanded class hierarchy of AuthenticationProviderInterface
All classes that implement AuthenticationProviderInterface
6 files declare their use of AuthenticationProviderInterface
- Auth.php in core/
modules/ locale/ tests/ modules/ early_translation_test/ src/ Auth.php - Contains \Drupal\early_translation_test\Auth.
- AuthenticationCollectorTest.php in core/
tests/ Drupal/ Tests/ Core/ Authentication/ AuthenticationCollectorTest.php - Contains \Drupal\Tests\Core\Authentication\AuthenticationCollectorTest.
- AuthenticationManagerTest.php in core/
tests/ Drupal/ Tests/ Core/ Authentication/ AuthenticationManagerTest.php - Contains \Drupal\Tests\Core\Authentication\AuthenticationManagerTest.
- AuthenticationSubscriber.php in core/
lib/ Drupal/ Core/ EventSubscriber/ AuthenticationSubscriber.php - Contains \Drupal\Core\EventSubscriber\AuthenticationSubscriber.
- BasicAuth.php in core/
modules/ basic_auth/ src/ Authentication/ Provider/ BasicAuth.php - Contains \Drupal\basic_auth\Authentication\Provider\BasicAuth.
File
- core/
lib/ Drupal/ Core/ Authentication/ AuthenticationProviderInterface.php, line 15 - Contains \Drupal\Core\Authentication\AuthenticationProviderInterface.
Namespace
Drupal\Core\AuthenticationView source
interface AuthenticationProviderInterface {
/**
* Checks whether suitable authentication credentials are on the request.
*
* @param \Symfony\Component\HttpFoundation\Request $request
* The request object.
*
* @return bool
* TRUE if authentication credentials suitable for this provider are on the
* request, FALSE otherwise.
*/
public function applies(Request $request);
/**
* Authenticates the user.
*
* @param \Symfony\Component\HttpFoundation\Request|NULL $request
* The request object.
*
* @return \Drupal\Core\Session\AccountInterface|NULL
* AccountInterface - in case of a successful authentication.
* NULL - in case where authentication failed.
*/
public function authenticate(Request $request);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AuthenticationProviderInterface:: |
public | function | Checks whether suitable authentication credentials are on the request. | 5 |
AuthenticationProviderInterface:: |
public | function | Authenticates the user. | 5 |