You are here

public function UsersJwtAuth::applies in JSON Web Token Authentication (JWT) 8

Checks whether suitable authentication credentials are on the request.

Parameters

\Symfony\Component\HttpFoundation\Request $request: The request object.

Return value

bool TRUE if authentication credentials suitable for this provider are on the request, FALSE otherwise.

Overrides AuthenticationProviderInterface::applies

File

modules/users_jwt/src/Authentication/Provider/UsersJwtAuth.php, line 79

Class

UsersJwtAuth
Class UsersJwtAuth.

Namespace

Drupal\users_jwt\Authentication\Provider

Code

public function applies(Request $request) {
  return (bool) self::getJwtFromRequest($request);
}