You are here

constant JwtAuthEvents::VALIDATE in JSON Web Token Authentication (JWT) 8

Same name and namespace in other branches
  1. 8.0 src/Authentication/Event/JwtAuthEvents.php \Drupal\jwt\Authentication\Event\JwtAuthEvents::VALIDATE

Name of the event fired before validating a JWT.

This event allows modules to provide custom validations for a JWT. Subscribers should assume every token is invalid. Therefore, this event should NOT perform any actions that depend on a valid JWT. This allows other subscribers to invalidate the JWT. Actions that depend on a valid token should use the VALID event.

File

src/Authentication/Event/JwtAuthEvents.php, line 24

Class

JwtAuthEvents
Class JwtAuthEvents.

Namespace

Drupal\jwt\Authentication\Event

Code

const VALIDATE = 'jwt.validate';