This module provides a way to authenticate with Drupal's REST API using tokens sent in headers. It also supports verifying request signatures and caching responses.
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.
Ask your assistant about REST API Access Token
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
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.