BasicAuth
class BasicAuth implements AuthenticationProviderInterface, AuthenticationProviderChallengeInterface (View source)
HTTP Basic authentication provider.
Properties
| protected ConfigFactoryInterface | $configFactory | The config factory. |
|
| protected UserAuthInterface | $userAuth | The user auth service. |
|
| protected FloodInterface | $flood | The flood service. |
|
| protected EntityTypeManagerInterface | $entityTypeManager | The entity type manager service. |
Methods
__construct(ConfigFactoryInterface $config_factory, UserAuthInterface $user_auth, FloodInterface $flood, EntityTypeManagerInterface $entity_type_manager)
Constructs a HTTP basic authentication provider object.
bool
applies(Request $request)
Checks whether suitable authentication credentials are on the request.
AccountInterface|null
authenticate(Request $request)
Authenticates the user.
HttpExceptionInterface|null
challengeException(Request $request, Exception $previous)
Constructs an exception which is used to generate the challenge.
Details
__construct(ConfigFactoryInterface $config_factory, UserAuthInterface $user_auth, FloodInterface $flood, EntityTypeManagerInterface $entity_type_manager)
Constructs a HTTP basic authentication provider object.
bool
applies(Request $request)
Checks whether suitable authentication credentials are on the request.
AccountInterface|null
authenticate(Request $request)
Authenticates the user.
HttpExceptionInterface|null
challengeException(Request $request, Exception $previous)
Constructs an exception which is used to generate the challenge.