GitHunt
DE

devudit/token_auth

A simple module for understanding authentication providers in drupal.

Token Auth

This is a simple module for understanding authentication providers in drupal.

This module will do the following things.

  • Add a token filed to user entity which automatically generated.
  • Add a token_auth authentication provider which we can apply to routes using module.routing.yml and the REST resource using backend interface.
  • Define a REST Resource for exposing a node by node id (for testing the token_auth authentication provider).

Screenshots

Backend Config.

Backend Config

Rest End Point & Exposing content through endpoint.

Rest End Point & Exposing content through endpoint

Languages

PHP100.0%

Contributors

GNU General Public License v3.0
Created June 14, 2021
Updated June 19, 2021
devudit/token_auth | GitHunt