You are here

public static function JwtAuthConsumerSubscriber::getSubscribedEvents in JSON Web Token Authentication (JWT) 8

Same name and namespace in other branches
  1. 8.0 modules/jwt_auth_consumer/src/EventSubscriber/JwtAuthConsumerSubscriber.php \Drupal\jwt_auth_consumer\EventSubscriber\JwtAuthConsumerSubscriber::getSubscribedEvents()

File

modules/jwt_auth_consumer/src/EventSubscriber/JwtAuthConsumerSubscriber.php, line 38

Class

JwtAuthConsumerSubscriber
Class JwtAuthConsumerSubscriber.

Namespace

Drupal\jwt_auth_consumer\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[JwtAuthEvents::VALIDATE][] = [
    'validate',
  ];
  $events[JwtAuthEvents::VALID][] = [
    'loadUser',
  ];
  return $events;
}