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
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.- Project categories: Access control
313 sites report using this module
- Created by marcinkazmierski on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.


