M
M
MarkBogrov2017-04-17 14:31:13
Drupal
MarkBogrov, 2017-04-17 14:31:13

How to authorize a user in Drupal and Laravel at the same time?

I ask for help as I can not correctly ask the question to the search engine.
Given: there is a project once written under Drupal 7, gradually rewriting some of its sections on Laravel, New sections are on the same domain.
Question: when a user has been authorized in Drupal, how can I make it so that in the Laravel project he is also defined as an authorized user until he logs out in Drupal?
PS
There is only one user on the site, he is the admin, respectively, in Laravel you need to catch the status of logged in or not, in order to give access to the admin panel or not.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hakkol, 2017-04-17
@hakkol

Had a similar experience with wordpress. I wrote a separate service provider and connected wp inside it. In AuthController I used hooks for user authorization and logout from wp.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question