[FLOW3-general] Logout does not work since upgrade 1.01?
Andreas Förthner
andreas.foerthner at netlogix.de
Fri Nov 25 10:45:33 CET 2011
Hi Thomas,
That also looks fine to me. Then you will have to look in to the $tokens
property of the security context, and debug the authenticationStatus of
your token(s) in there.
Greets Andi
Am 25.11.11 09:47 schrieb "Thomas Plessis" unter
<t.plessis at totemnumerique.com>:
>I'm using "PersistedUsernamePasswordProvider", here is my settings :
>
>--------------
>TYPO3:
> FLOW3:
> security:
> authentication:
> authenticationStrategy: oneToken
> providers:
> DefaultProvider:
> providerClass: PersistedUsernamePasswordProvider
> entryPoint:
> WebRedirect:
> uri: login.html
>--------------
>
>Creation account like that :
>
>--------------
>$accountIdentifier =
>$newMember->getPrimaryElectronicAddress()->getIdentifier();
>$account =
>$this->accountFactory->createAccountWithPassword($accountIdentifier,
>$newMember->getPassword(), array($defaultRole));
>$this->accountRepository->add($account);
>$newMember->addAccount($account);
>$this->memberRepository->add($newMember);
>$this->addFlashMessage('Created a new member.');
>$this->redirect('index', 'Home');
>---------------
>
>regards,
>
>Thomas Plessis
>Développeur multimédia
>--
>TOTEMnumerique
>9, Place St Étienne
>31000 Toulouse
>T. 05 61 14 64 54
>F. 05 61 14 64 55
>
>Le 24 nov. 2011 à 18:35, Andreas Förthner a écrit :
>
>> Hi Thomas,
>>
>> which authentication providers are you using? Basically everything looks
>> fine so farŠ
>>
>> Greets Andi
>>
>> Am 24.11.11 16:35 schrieb "Thomas Plessis" unter
>> <t.plessis at totemnumerique.com>:
>>
>>> any ideas about this?
>>>
>>> regards,
>>>
>>> Thomas Plessis
>>> Développeur multimédia
>>> --
>>> TOTEMnumerique
>>> 9, Place St Étienne
>>> 31000 Toulouse
>>> T. 05 61 14 64 54
>>> F. 05 61 14 64 55
>>>
>>> Le 23 nov. 2011 à 12:25, Thomas Plessis a écrit :
>>>
>>>> Hi guys,
>>>>
>>>> I've upgrade my FLOW3 project this morning with the new release 1.01,
>>>> and now the logout method from authenticationManager does not workŠ
>>>>it's
>>>> impossible to logout, and i've no errors or warnings.
>>>>
>>>> Here is my LoginController :
>>>>
>>>> class LoginController extends
>>>> \Totem\Lewin\Controller\AbstractBaseController {
>>>>
>>>> /**
>>>> * @FLOW3\Inject
>>>> * @var
>>>> \TYPO3\FLOW3\Security\Authentication\AuthenticationManagerInterface
>>>> */
>>>> protected $authenticationManager;
>>>>
>>>> /**
>>>> * Show login poage
>>>> *
>>>> * @return string
>>>> */
>>>> public function indexAction() {
>>>>
>>>> }
>>>>
>>>> /**
>>>> * Authenticates an account by invoking the Provider based
>>>> Authentication Manager.
>>>> *
>>>> * On successful authentication redirects to the index page,
>>>>otherwise
>>>> returns
>>>> * to the login screen.
>>>> *
>>>> * @return void
>>>> */
>>>> public function authenticateAction() {
>>>> try {
>>>> $this->authenticationManager->authenticate();
>>>> $this->redirect('index', 'Home');
>>>> } catch
>>>> (\TYPO3\FLOW3\Security\Exception\AuthenticationRequiredException
>>>> $exception) {
>>>> $this->addFlashMessage('Wrong username or
>>>>password.');
>>>> throw $exception;
>>>> }
>>>> }
>>>>
>>>> /**
>>>> * Logout user from website
>>>> *
>>>> * @return void
>>>> */
>>>> public function logoutAction() {
>>>> $this->authenticationManager->logout();
>>>> $this->addFlashMessage('Successfully logged out.');
>>>> $this->redirect('index', 'Home');
>>>> }
>>>> }
>>>>
>>>> regards,
>>>>
>>>> Thomas Plessis
>>>> Développeur multimédia
>>>> --
>>>> TOTEMnumerique
>>>> 9, Place St Étienne
>>>> 31000 Toulouse
>>>> T. 05 61 14 64 54
>>>> F. 05 61 14 64 55
>>>>
>> Andreas Förthner
>> Leiter Web-Entwicklung
>>
>> Telefon: +49 (911) 539909 - 0
>> E-Mail: andreas.foerthner at netlogix.de
>> Website: media.netlogix.de
>>
>>
>> --
>> netlogix GmbH & Co. KG
>> IT-Services | IT-Training | Media
>> Andernacher Straße 53 | 90411 Nürnberg
>> Telefon: +49 (911) 539909 - 0 | Fax: +49 (911) 539909 - 99
>> E-Mail: info at netlogix.de | Internet: http://www.netlogix.de
>>
>> netlogix GmbH & Co. KG ist eingetragen am Amtsgericht Nürnberg (HRA
>>13338)
>> Persönlich haftende Gesellschafterin: netlogix Verwaltungs GmbH (HRB
>>20634)
>> Umsatzsteuer-Identifikationsnummer: DE 233472254
>> Geschäftsführer: Stefan Buchta, Matthias Schmidt
>>
>>
>>
>>
Andreas Förthner
Leiter Web-Entwicklung
Telefon: +49 (911) 539909 - 0
E-Mail: andreas.foerthner at netlogix.de
Website: media.netlogix.de
_______________________________________________
>>>> FLOW3-general mailing list
>>>> FLOW3-general at lists.typo3.org
>>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general
>>>
>>> _______________________________________________
>>> FLOW3-general mailing list
>>> FLOW3-general at lists.typo3.org
>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general
>>
>> _______________________________________________
>> FLOW3-general mailing list
>> FLOW3-general at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general
>
>_______________________________________________
>FLOW3-general mailing list
>FLOW3-general at lists.typo3.org
>http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general
More information about the FLOW3-general
mailing list