feat: adjust oauth2 implementation for TYPO3 backend login

This commit is contained in:
Björn Fromme
2026-03-16 12:00:56 +01:00
parent ee84690cd9
commit d1e807b11f
7 changed files with 24 additions and 9 deletions
+3 -3
View File
@@ -43,9 +43,8 @@ class SecurityController extends AbstractController
// authentication (see App\EventListener\AuthorizationCodeListener).
$session = $request->getSession();
$targetPath = $session->get('_security.main.target_path');
if (null !== $targetPath && str_contains($targetPath, '/authorize')) {
$session->set('_oauth2', true);
}
$isOauth2 = null !== $targetPath && str_contains($targetPath, '/authorize');
$session->set('_oauth2', $isOauth2);
// For booking flow, set target path to Step 1 (after successful auth, redirect there)
if (true === $isBookingFlow) {
@@ -71,6 +70,7 @@ class SecurityController extends AbstractController
'travel_date_from' => $bookingDto?->travel->dateFrom,
'travel_date_to' => $bookingDto?->travel->dateTo,
'cmsData' => $cmsData,
'oauth2' => $isOauth2,
]);
}