Add REST endpoints for registration and login
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
andserialization
modules.
These enhancements allow external applications to interact directly with Drupal for user management via REST.