summaryrefslogtreecommitdiffstats
path: root/Http/EntryPoint/FormAuthenticationEntryPoint.php
Commit message (Collapse)AuthorAgeFilesLines
* made phpdoc types consistent with those defined in HackFabien Potencier2014-04-151-1/+1
|
* made types consistent with those defined in HackFabien Potencier2014-04-131-1/+1
|
* removed unneeded use statementsFabien Potencier2014-01-011-1/+0
|
* Merge branch '2.2' into 2.3Fabien Potencier2013-09-291-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | * 2.2: fixed Client when using the terminable event Fix problem with Windows file links (backslash in JavaScript string) [Security] fixed wrong phpdoc [Routing] removed extra argument [HttpFoundation] Header `HTTP_X_FORWARDED_PROTO` can contain various values Some proxies use `ssl` instead of `https`, as well as Lighttpd mod_proxy allows value chaining (`https, http`, where `https` is always first when request is encrypted). Added doc comments Conflicts: src/Symfony/Component/HttpFoundation/Request.php
| * Added doc commentsPiotr Antosik2013-09-191-1/+1
| |
* | [Security] Return 401 when using use_forward for form authenticationGunnar Lium2013-03-231-1/+6
|/
* fixed CSFabien Potencier2012-05-181-3/+3
|
* fixed phpdoc @param alignmentFabien Potencier2012-05-151-3/+3
|
* [Security] Fix http form authentication entry pointAntoine Hérault2011-06-251-1/+1
|
* [Security] added an HttpUtils class to manage logic related to Requests and ↵Fabien Potencier2011-06-221-6/+7
| | | | | | | | | | | | | | Responses This change removes the need for the {_locale} hack. Now, all paths in the Security component can be: * An absolute path (/login) * An absolute URL (http://symfony.com/login) * A route name (login) So, if you want to use a path that includes a global parameter (like _locale), use a route instead of a path.
* [Security] fixed sub-requests creation (closes #1212)Fabien Potencier2011-06-081-1/+3
|
* Added the support of the locale in the login path and the check pathChristophe Coevoet2011-06-061-2/+3
|
* [Phpdoc] Cleaning/fixingPascal Borreli2011-04-231-2/+2
|
* [Security] removed un-needed event parameter from many interfacesJohannes Schmitt2011-03-181-4/+6
|
* Switched from Doctrine's EventManager implementation to the EventManager ↵Bernhard Schussek2011-03-131-2/+2
| | | | clone in Symfony2 (now called EventDispatcher again)
* Merge remote branch 'symfony/master' into event-managerBernhard Schussek2011-03-131-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/Symfony/Bundle/FrameworkBundle/Debug/TraceableEventManager.php src/Symfony/Bundle/WebProfilerBundle/WebDebugToolbarListener.php src/Symfony/Component/Security/Http/Firewall.php src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php src/Symfony/Component/Security/Http/Firewall/AbstractPreAuthenticatedListener.php src/Symfony/Component/Security/Http/Firewall/AccessListener.php src/Symfony/Component/Security/Http/Firewall/AnonymousAuthenticationListener.php src/Symfony/Component/Security/Http/Firewall/BasicAuthenticationListener.php src/Symfony/Component/Security/Http/Firewall/ChannelListener.php src/Symfony/Component/Security/Http/Firewall/ContextListener.php src/Symfony/Component/Security/Http/Firewall/DigestAuthenticationListener.php src/Symfony/Component/Security/Http/Firewall/ExceptionListener.php src/Symfony/Component/Security/Http/Firewall/ListenerInterface.php src/Symfony/Component/Security/Http/Firewall/LogoutListener.php src/Symfony/Component/Security/Http/Firewall/RememberMeListener.php src/Symfony/Component/Security/Http/Firewall/SwitchUserListener.php tests/Symfony/Tests/Component/Security/Http/Firewall/RememberMeListenerTest.php
| * [Security] various changes, see belowJohannes Schmitt2011-03-101-2/+2
| | | | | | | | | | | | - visibility changes from protected to private - AccountInterface -> UserInterface - SecurityContext::vote() -> SecurityContext::isGranted()
* | Renamed EventArgs classes and adapted remaining code to EventManagerBernhard Schussek2011-03-071-2/+2
| | | | | | | | | | | | | | The only missing part is ContainerAwareEventManager::addEventSubscriberService(), because I'm not sure how to find out the class name of a service in the DIC. Also, inline documentation of this code needs to be finished once it is accepted.
* | Merge remote branch 'symfony/master' into event-managerBernhard Schussek2011-03-071-2/+2
|\ \ | |/
| * replaced symfony-project.org by symfony.comFabien Potencier2011-03-061-2/+2
| |
* | Replaced EventDispatcher by Doctrine's EventManager implementationBernhard Schussek2011-03-051-3/+3
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Doctrine's EventManager implementation has several advantages over the EventDispatcher implementation of Symfony2. Therefore I suggest that we use their implementation. Advantages: * Event Listeners are objects, not callbacks. These objects have handler methods that have the same name as the event. This helps a lot when reading the code and makes the code for adding an event listener shorter. * You can create Event Subscribers, which are event listeners with an additional getSubscribedEvents() method. The benefit here is that the code that registers the subscriber doesn't need to know about its implementation. * All events are defined in static Events classes, so users of IDEs benefit of code completion * The communication between the dispatching class of an event and all listeners is done through a subclass of EventArgs. This subclass can be tailored to the type of event. A constructor, setters and getters can be implemented that verify the validity of the data set into the object. See examples below. * Because each event type corresponds to an EventArgs implementation, developers of event listeners can look up the available EventArgs methods and benefit of code completion. * EventArgs::stopPropagation() is more flexible and (IMO) clearer to use than notifyUntil(). Also, it is a concept that is also used in other event implementations Before: class EventListener { public function handle(EventInterface $event, $data) { ... } } $dispatcher->connect('core.request', array($listener, 'handle')); $dispatcher->notify('core.request', new Event(...)); After (with listeners): final class Events { const onCoreRequest = 'onCoreRequest'; } class EventListener { public function onCoreRequest(RequestEventArgs $eventArgs) { ... } } $evm->addEventListener(Events::onCoreRequest, $listener); $evm->dispatchEvent(Events::onCoreRequest, new RequestEventArgs(...)); After (with subscribers): class EventSubscriber { public function onCoreRequest(RequestEventArgs $eventArgs) { ... } public function getSubscribedEvents() { return Events::onCoreRequest; } } $evm->addEventSubscriber($subscriber); $evm->dispatchEvent(Events::onCoreRequest, new RequestEventArgs(...));
* replaced Response::createRedirect by a new RedirectResponse classFabien Potencier2011-02-211-1/+2
|
* remove response as a serviceFabien Potencier2011-02-211-4/+1
| | | | | | | | | | | | | | | | The Response is not available in the DIC anymore. When you need to create a response, create an instance of Symfony\Component\HttpFoundation\Response instead. As a side effect, the Controller::createResponse() and Controller::redirect() methods have been removed and can easily be replaced as follows: return $this->createResponse('content', 200, array('foo' => 'bar')); return new Response('content', 200, array('foo' => 'bar')); return $this->redirect($url); return Response::createRedirect($url);
* [Security] Refactored security context, moved getUser() implementation to ↵Johannes Schmitt2011-02-121-1/+0
| | | | templating
* some fixes by just "blindly" trying to make phpStorm code analysis happierLukas Kahwe Smith2011-02-041-0/+1
|
* [Security] bug fix in FormAuthenticationEntryPointJohannes M. Schmitt2011-02-021-2/+3
|
* namespace changesJohannes M. Schmitt2011-01-261-0/+56
Symfony\Component\Security -> Symfony\Component\Security\Core Symfony\Component\Security\Acl remains unchanged Symfony\Component\HttpKernel\Security -> Symfony\Component\Security\Http