Skip to content

Add REST endpoints for registration and login

Md Sahil requested to merge main into 1.0.x

Pull Request: Add REST Endpoints for User Registration and Login

Summary

This PR introduces two RESTful API endpoints to the Supabase Authentication module:

  • /api/register: Allows external systems to register new users.
  • /api/login: Enables external systems to authenticate users.

Both endpoints integrate with Supabase and Drupal's user management system.

Key Changes

  • Added AuthController to handle API requests.
  • Updated routing and permissions for the new endpoints.
  • Added dependencies on rest and serialization modules.

These enhancements allow external applications to interact directly with Drupal for user management via REST.

Merge request reports

Loading