REST API Access Token
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.
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.