Redirect

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

Migrating content and Modules between two Drupal 8 sites

Hello,

I have two Drupal 8 sites installed with composer.

One is old and installed with drupal-composer/drupal-project which has been deprecated.

The new one is a clean install using drupal/recommended-project

Can I install the same Modules without doing it manually?

Can I migrate the content to the new site?

Thank you!

File permission changed to 664

Hello,

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.

Access denied for anonymous user on front page

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…

Any help and hint would be great ;-)

Drupal 8 API authentication from external OAuth2 provider

Hi all,

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.

Any kind of help is greatly appreciated. 

Viewing html file - Create page from outside server

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?

Thank you.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x