Project

General

Profile

Actions

Bug #82534

closed

Felogin redirect by domain entries referer

Added by Bernhard Eckl over 6 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
felogin
Target version:
-
Start date:
2017-09-21
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

There is a bug in the redirect by domain entries. According to the docs it is the same like redirect by referer, but the domain has to be defined in plugin.tx_felogin_pi1.domains. But this was not necessary (nothing changed, no redirect), instead the domain must be defined as a domain record.

In my case I wanted to redirect to a domain called https://intranet.xyz.de (intranet.xyz.de is a totally different server, no TYPO3). For this I had to create a domain record for the domain intranet.xyz.de. If the referer was not in the header, it also works as get parameter. But only if the domain is defined as a domain record.

This is because in felogin/Classes/Controller/FrontendLoginController.php function validateRedirectUrl is called which calls isInLocalDomain and in isInLocalDomain the domain records get checked. Instead it should not check isInLocalDomain but plugin.tx_felogin_pi1.domains.

I would prefer just to define the domain in plugin.tx_felogin_pi1.domains like mentioned in the documentation and no domain records.

Actions

Also available in: Atom PDF