I'm learning hooks and I need to put a check on the start page.
I want anonymous users to be redirected to the login page and redirected to the home page after logging in.
Only authenticated users must see the home page
I have tried both with hook_form_alter () and with hook_user_login (). I have been reading various codes for several days and doing various tests but I cannot understand where I am wrong
The version of Drupal is 8.8.5
Every time I use composure and add a Module for example, all of the file permission are changed to 664. I have to then use Terminal to change them all back to 644.
Does this happen to anyone else?
I've found that I'm having to run chmod u+w web/sites/default every time.
Since D8.8.4 I have an 403 Access denied for anonymous user on all the front pages (I use domain so there is several domain with same issue). But all the other pages with the right URL can be seen e.g. /user/login .
I tried to remove Content Access, same issue. I cleared all the caches, still no access…
Can you please help on Drupal 8 API authentication from external OAuth2 provider?
To be clear:
i. Drupal is working in headless mode.
ii. Client application will make calls to Drupal for content.
iii. Client application has to initially authenticate against an external system (say, PingFederate), get the token, and pass this to Drupal for authentication.
I'm creating a form that sends a file to an outside server (via webform remote handlers). This server returns a .html file which I need to view from my drupal page but I can't seem to find a way to do this.
How could I view the html file in drupal or create a page from the server?