[FLOW3-general] Authentication
Bernhard Marx
bernhard.marx at marxdesign.de
Wed Nov 2 21:26:58 CET 2011
Hi Regine,
thanks for your reply
nothing changed...
to confirm:
you want me to change here:
public function authenticateAction() {
try {
$this->authenticationManager->authenticate();
$this->redirect('index', 'Admin');
} catch
(\TYPO3\FLOW3\Security\Exception\AuthenticationRequiredException $exception)
{
$this->addFlashMessage('Wrong username or
password.');
//$this->flashMessageContainer->addMessage(new
\TYPO3\FLOW3\Error\Message('Wrong username or password'));
throw $exception;
}
}
Bernhard
-----Ursprüngliche Nachricht-----
Von: flow3-general-bounces at lists.typo3.org
[mailto:flow3-general-bounces at lists.typo3.org] Im Auftrag von Regine
Rosewich
Gesendet: Mittwoch, 2. November 2011 21:24
An: 'General discussion about FLOW3'
Betreff: Re: [FLOW3-general] Authentication
Hi Bernhard,
Sry my fault. The Error Message you sent says that the flashMessageContainer
wants an Instance of TYPO3\FLOW3\Error\Message not of
\TYPO3\FLOW3\Error\Error
Just try it with TYPO3\FLOW3\Error\Message
Regine
> -----Ursprüngliche Nachricht-----
> Von: flow3-general-bounces at lists.typo3.org [mailto:flow3-general-
> bounces at lists.typo3.org] Im Auftrag von Bernhard Marx
> Gesendet: Mittwoch, 2. November 2011 21:04
> An: General discussion about FLOW3
> Betreff: Re: [FLOW3-general] Authentication
>
> Hi Regine,
>
> thanks for your quick reply.
>
> No doesn't help...
>
> Bernhard
>
> -----Ursprüngliche Nachricht-----
> Von: flow3-general-bounces at lists.typo3.org
> [mailto:flow3-general-bounces at lists.typo3.org] Im Auftrag von Regine
> Rosewich
> Gesendet: Mittwoch, 2. November 2011 20:57
> An: 'General discussion about FLOW3'
> Betreff: Re: [FLOW3-general] Authentication
>
> Hi Bernhard,
>
> the FLOW3 guys obviously did not entirely migrate the samples to FLOW3
> 1.0.0
>
> just replace the line >> $this->addFlashMessage('Wrong username or
> password.'); with >> $this->flashMessageContainer->addMessage(new
> \TYPO3\FLOW3\Error\Error('Wrong username or password'));
>
> thus it should work.
>
> Regine
>
> > -----Ursprüngliche Nachricht-----
> > Von: flow3-general-bounces at lists.typo3.org [mailto:flow3-general-
> > bounces at lists.typo3.org] Im Auftrag von Bernhard Marx
> > Gesendet: Mittwoch, 2. November 2011 20:43
> > An: General discussion about FLOW3
> > Betreff: Re: [FLOW3-general] Authentication
> >
> > Hi Andi,
> >
> > now at first, and when i played around before with the example and
> the
> > Blog demo
> >
> > I get the following error:
> >
> > Uncaught Exception in FLOW3
> > #1: Catchable Fatal Error: Argument 1 passed to
> > TYPO3\FLOW3\MVC\FlashMessageContainer::addMessage() must be an
> > instance of TYPO3\FLOW3\Error\Message, string given, called in
> > /var/www/flow3/FLOW3-
> > 1.0.0/Data/Temporary/Development/Cache/Code/FLOW3_Objec
> > t_Classes/TYPO3_FLOW3_MVC_Controller_ActionController_Original.php
> > on line
> > 392 and defined in
> > /var/www/flow3/FLOW3-
> > 1.0.0/Data/Temporary/Development/Cache/Code/FLOW3_Objec
> > t_Classes/TYPO3_FLOW3_MVC_FlashMessageContainer.php line 125 (More
> > information)
> >
> > Code from the sample blog:
> >
> > public function authenticateAction() {
> > try {
> > $this->authenticationManager->authenticate();
> > $this->redirect('index', 'Admin');
> > } catch
> > (\TYPO3\FLOW3\Security\Exception\AuthenticationRequiredException
> > $exception) {
> > $this->addFlashMessage('Wrong username or
> password.');
> > throw $exception;
> > }
> > }
> >
> > Thanks
> >
> > Bernhard
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: flow3-general-bounces at lists.typo3.org
> > [mailto:flow3-general-bounces at lists.typo3.org] Im Auftrag von
> > Andreas Förthner
> > Gesendet: Mittwoch, 2. November 2011 19:08
> > An: General discussion about FLOW3
> > Betreff: Re: [FLOW3-general] Authentication
> >
> > Hi Bernhard,
> >
> > Ok, what part didn't you understand?
> >
> > Greets Andi
> >
> > Am 02.11.11 19:05 schrieb "Bernhard Marx" unter
> > <bernhard.marx at marxdesign.de>:
> >
> > >Hi Andi,
> > >
> > >thanks for your quick reply.
> > >
> > >I read this part. But I got not the clue :-(
> > >
> > >Bernhard
> > >
> > >
> > >
> > >
> > Andreas Förthner
> > Leiter Web-Entwicklung
> >
> > Telefon: +49 (911) 539909 - 0
> > E-Mail: andreas.foerthner at netlogix.de
> > Website: media.netlogix.de
> > -----Ursprüngliche Nachricht-----
> > >Von: flow3-general-bounces at lists.typo3.org
> > >[mailto:flow3-general-bounces at lists.typo3.org] Im Auftrag von
> Andreas
> > >Förthner
> > >Gesendet: Mittwoch, 2. November 2011 18:59
> > >An: General discussion about FLOW3
> > >Betreff: Re: [FLOW3-general] Authentication
> > >
> > >Hi Bernhard,
> > >
> > >maybe you have a look at the Definitive Guide[1], there is an
> example
> > >and the description of the whole authentication system. More
> > >tutorials to come here, though.
> > >
> > >Greets Andi
> > >
> > >[1]
> > >http://flow3.typo3.org/documentation/guide/partiii/security.html
> > >
> > >Am 02.11.11 18:52 schrieb "Bernhard Marx" unter
> > ><bernhard.marx at marxdesign.de>:
> > >
> > >>Hi,
> > >>
> > >>
> > >>
> > >>I'm new to flow3, but from comparsion to other system I like it
> > >>and want to use it.
> > >>
> > >>
> > >>
> > >>May somebody can provide me a sample or linke to a sample for
> > >>authentication and esp. own provider
> > >>
> > >>
> > >>
> > >>I wanted that the app connects to Facebook, and User Auth is done
> by
> > >>Facebook.
> > >>
> > >>
> > >>
> > >>Thanks in advance.
> > >>
> > >>
> > >>
> > >>Bernhard
> > >>
> > >>
> > >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
> > >
> > >
> > >
> > >_______________________________________________
> > >>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
>
>
> _______________________________________________
> 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