Simple OAuth: token bearer authentication for Drupal 8

Simple OAuth is an implementation of the OAuth 2.0 Authorization Framework: Bearer Token specification.

Using OAuth 2.0 Bearer Token is very easy. See how you can get the basics working in less than a minute!

This project is focused in simplicity of use and flexibility. When deciding which project to use, also consider other projects like OAuth, an OAuth 1 implementation that doesn't rely on you having https in your production server.

SimpleSAML PHP Auth

The SimpleSAML PHP Auth module integrates the simplesamlphp library into Drupal.

For a full description of the module, visit:


Installation instructions can be found on the module page at:


Recommended releases:

How TFA module works

This page describes how the Two-Factor Authentication module (TFA) version 2.x module works within Drupal to provide 2FA options for authenticating with Drupal sites.

For more specific details it is recommended that you read the TFA source code.

At a high-level, TFA module does the following 3 things:

Basic Auth module: HTTP Basic access authentication

The Basic Auth module takes a username and password out of the request and authenticates them against Drupal.

It implements the HTTP Basic protocol, in which the username and password are encoded and added to the Authorization header within the request. You can find further details about how it works at its section in Wikipedia.

Bash script example for custom services action with session authentication

Here is Bash script example how to work with custom services action that requires session authentication.

Endpoint requirements :


Subscribe with RSS Subscribe to RSS - authentication