Skip to content
Snippets Groups Projects
Select Git revision
  • 8.x-2.21
  • 8.x-4.x default
  • 8.x-3.x
  • 7.x-1.x
  • 8.x-2.x
  • 7.x-2.x
  • 8.x-1.x
  • 8.x-4.30
  • 8.x-4.29
  • previous/3527489-plugin-annotations-attribs/2025-06-03
  • 8.x-4.28
  • 8.x-4.27
  • 8.x-4.26
  • 8.x-4.25
  • 8.x-4.24
  • 8.x-3.47
  • 8.x-3.46
  • 8.x-4.23
  • 8.x-3.45
  • 8.x-4.22
  • 8.x-3.44
  • 8.x-4.21
  • 8.x-3.43
  • 8.x-4.20
  • 8.x-3.42
  • 8.x-3.41
  • 8.x-4.19
27 results

geocoder

  • Clone with SSH
  • Clone with HTTPS
  • CONTENTS OF THIS FILE

    • Introduction
    • Requirements
    • Installation
    • Configuration
    • Maintainers

    INTRODUCTION

    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.

    REQUIREMENTS

    min. PHP 7.3 version

    INSTALLATION

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

    CONFIGURATION

    1. Navigate to Administration > Extend and enable the module.
    2. Navigate to Administration > Configuration > REST API Access Token and enable 'Enable signature verification' if you need signature verification for each request.
    3. Navigate to Administration > Configuration > REST API Access Token and enable 'Enable cache endpoints by REQUEST-ID (in header)' if you need cacheable endpoints.
    4. Navigate to Administration > Configuration > REST API Access Token and set value of 'Set lifetime of cache endpoints in seconds.'
    5. Navigate to Administration > Configuration > REST API Access Token and set value of 'Set lifetime of auth token in hours.'
    6. If you want to remove other user tokens, please use EventSubscriberInterface and AccessTokenEvents::TOKEN_RESPONSE:
    try {
      $this->tokenRepository->removeOtherUserTokens($token);
    } catch (\Throwable $e) {}
    1. Navigate to Administration > Configuration > REST API Access Token and set API login options: via username or via user mail.

    MAINTAINERS

    TODO

    • unit tests
    • disable auth for specific endpoints / controllers