Configuration page
Rest UI configuration page
API usage example from Postman

The REST API Access Token module provides a Drupal authentication provider that uses tokens (in headers) as the primary factor of authentication.
Additionally module provide signature verification for requests and response cache.

Installation

Install the REST API Access Token module as you would normally install a contributed Drupal module. Next, enable module in admin panel.

Configuration

Navigate to Administration > Configuration > REST API Access Token.

If you want to remove other user tokens

use EventSubscriberInterface and AccessTokenEvents::TOKEN_RESPONSE:

try {
  $this->tokenRepository->removeOtherUserTokens($token);
} catch (\Throwable $e) {}

Supporting:

https://www.drupal.org/u/marcinkazmierski - Development and maintenance.

Project information

Releases