Symfony headless drupal login bug
Hi,
I'm trying to build a symfony headless drupal application, i made a custom module to handle login, logout and registration process,
this is my custom module:
<?php
/**
* @file
* Contains \Drupal\remoteuser\Controller\RemoteUserController
*/
namespace Drupal\remoteuser\Controller;
use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\Form\FormState;
use Drupal\Core\Entity;
use Drupal\user\Controller;
use Symfony\Component\HttpFoundation\JsonResponse;
class RemoteUserController extends ControllerBase
{
public function login() {
Headless drupal 8 + AngularJS + NodeJS
We are looking for the best way to create the authentication using Drupal 8 rest server, angular + nodejs...
We created drupal instance, angular app which is hosted on nodejs server, this way we have separated hosts. What we achieved is successful writing of data in drupal session table, but we cannot keep angular session alive... So what is the best way to do this?
Do you have any tips for integrating these technologies?
We would like when we log in to angular app and switch pages to keep the session alive on drupal and in ang. app...