Bug #33311

AuthenticationProviderManager::isAuthenticated does not work in authentication request

Added by Kira Backes over 3 years ago. Updated over 3 years ago.

Status:Resolved Start date:2012-01-19
Priority:Must have Due date:
Assigned To:Christian Müller % Done:

100%

Category:Security
Target version:-
PHP Version: Complexity:
Has patch:No Affected Flow version:Git master

Description

If the client does not have a session and the client authenticates, then a new session is created. The method isAuthenticated checks if the current session canBeResumed(), but that method again checks for the session in $_COOKIE. Since the session was just created, the isAuthenticated method never works in the authentication request. It only starts working in all subsequent requests, since the new session is then available in $_COOKIE.


Related issues

duplicates TYPO3.Flow - Bug #31905: getInterceptedRequest is NULL but ACL matches correctly DENY Resolved 2011-11-18

Associated revisions

Revision 08b70b82
Added by Christian Müller over 3 years ago

[BUGFIX] isAuthenticated should work in authentication request

AuthenticationManager::isAuthenticated now checks for resumable
and new sessions before returning FALSE, so it works also in the
request that triggers the authentication.

Change-Id: I97fa566a84123284aa7fa0099a9ad024196ed7b4
Fixes: #33311
Releases: 1.0, 1.1

Revision 27f00f62
Added by Christian Müller over 3 years ago

[BUGFIX] isAuthenticated should work in authentication request

AuthenticationManager::isAuthenticated now checks for resumable
and new sessions before returning FALSE, so it works also in the
request that triggers the authentication.

Change-Id: I2aa3c54cae2ad45a285e8365f5e2052112a887ea
Fixes: #33311
Releases: 1.0, 1.1

History

#1 Updated by Gerrit Code Review over 3 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9260

#2 Updated by Gerrit Code Review over 3 years ago

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9261

#3 Updated by Gerrit Code Review over 3 years ago

Patch set 1 for branch FLOW3-1.0 has been pushed to the review server.
It is available at http://review.typo3.org/9262

#4 Updated by Christian Müller over 3 years ago

  • Assigned To set to Christian Müller

#5 Updated by Gerrit Code Review over 3 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9260

#6 Updated by Gerrit Code Review over 3 years ago

Patch set 1 for branch FLOW3-1.0 has been pushed to the review server.
It is available at http://review.typo3.org/9302

#7 Updated by Christian Müller over 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF