Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [Security] removed import of the UserInterface interface as it is unused in ↵ | hhamon | 2011-03-18 | 1 | -6/+4 |
| | | | | the file and fix some phpdoc. | ||||
* | [Security] fixed typos | Fabien Potencier | 2011-03-18 | 1 | -2/+2 |
| | |||||
* | fixed various bugs introduced during the event system migration | Fabien Potencier | 2011-03-18 | 3 | -8/+12 |
| | |||||
* | renamed filterCore* to onCore* | Fabien Potencier | 2011-03-17 | 1 | -1/+1 |
| | | | | | | The onCore* events are fired at some pre-defined points during the handling of a request. At this is more important than the fact that you can change things from the event. | ||||
* | fixed phpdoc | Fabien Potencier | 2011-03-17 | 3 | -3/+3 |
| | |||||
* | renamed some methods in the event dispatcher | Fabien Potencier | 2011-03-17 | 6 | -7/+7 |
| | |||||
* | [Security] Fixed method names in the Firewall listeners | Bernhard Schussek | 2011-03-17 | 15 | -15/+15 |
| | |||||
* | [Security] Fixed method calls on EventDispatcher | Bernhard Schussek | 2011-03-17 | 2 | -2/+2 |
| | |||||
* | Merge remote branch 'symfony/master' into event-manager | Bernhard Schussek | 2011-03-17 | 4 | -5/+9 |
|\ | | | | | | | | | | | | | | | | | | | | | Conflicts: src/Symfony/Bundle/AsseticBundle/CacheWarmer/AssetWriterCacheWarmer.php src/Symfony/Bundle/AsseticBundle/Tests/CacheWarmer/AssetWriterCacheWarmerTest.php src/Symfony/Bundle/FrameworkBundle/Profiler/ProfilerListener.php src/Symfony/Bundle/FrameworkBundle/Resources/config/profiling.xml src/Symfony/Component/HttpKernel/HttpKernel.php src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php src/Symfony/Component/Security/Http/Firewall/AbstractPreAuthenticatedListener.php | ||||
| * | [Security] small performance optimization | Johannes M. Schmitt | 2011-03-14 | 1 | -0/+4 |
| | | |||||
| * | [Security] added some finals, some visibility changes | Johannes M. Schmitt | 2011-03-13 | 3 | -4/+4 |
| | | |||||
* | | [Security] Fixed calls to EventDispatcher::dispatchEvent() | Bernhard Schussek | 2011-03-13 | 2 | -2/+2 |
| | | |||||
* | | Switched from Doctrine's EventManager implementation to the EventManager ↵ | Bernhard Schussek | 2011-03-13 | 27 | -172/+172 |
| | | | | | | | | clone in Symfony2 (now called EventDispatcher again) | ||||
* | | Merge remote branch 'symfony/master' into event-manager | Bernhard Schussek | 2011-03-13 | 86 | -1453/+1113 |
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
| * | re-added a __toString method for debugging purposes | Johannes Schmitt | 2011-03-12 | 3 | -2/+27 |
| | | |||||
| * | use username instead of token object in logging | Klaas Naaijkens | 2011-03-12 | 1 | -2/+2 |
| | | |||||
| * | [Security] fixed some tests | Johannes Schmitt | 2011-03-11 | 4 | -4/+5 |
| | | |||||
| * | [Security] removed core.security event | Johannes Schmitt | 2011-03-11 | 16 | -277/+35 |
| | | |||||
| * | [Security] refactored remember-me code | Johannes M. Schmitt | 2011-03-11 | 7 | -178/+164 |
| | | |||||
| * | [Security] some more visibility changes | Johannes M. Schmitt | 2011-03-10 | 2 | -114/+112 |
| | | |||||
| * | [Security] added some more tests | Johannes M. Schmitt | 2011-03-10 | 2 | -3/+16 |
| | | |||||
| * | [Security] fixed some left-overs | Johannes M. Schmitt | 2011-03-10 | 2 | -4/+4 |
| | | |||||
| * | [Security] various changes, see below | Johannes Schmitt | 2011-03-10 | 81 | -910/+784 |
| | | | | | | | | | | | | - visibility changes from protected to private - AccountInterface -> UserInterface - SecurityContext::vote() -> SecurityContext::isGranted() | ||||
* | | Renamed EventArgs classes and adapted remaining code to EventManager | Bernhard Schussek | 2011-03-07 | 21 | -61/+62 |
| | | | | | | | | | | | | | | 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-manager | Bernhard Schussek | 2011-03-07 | 136 | -211/+231 |
|\ \ | |/ | |||||
| * | replaced symfony-project.org by symfony.com | Fabien Potencier | 2011-03-06 | 135 | -206/+206 |
| | | |||||
| * | [Security] forward the entire access denied exception instead of only the ↵ | Johannes Schmitt | 2011-03-05 | 1 | -1/+1 |
| | | | | | | | | message | ||||
| * | Merge branch 'lewinski-fix-acl-schema-generator' into security | Johannes Schmitt | 2011-03-05 | 1 | -1/+1 |
| |\ | |||||
| | * | Merge branch 'fix-acl-schema-generator' of ↵ | Johannes Schmitt | 2011-03-05 | 1 | -1/+1 |
| | |\ | | | | | | | | | | | | | https://github.com/lewinski/symfony into lewinski-fix-acl-schema-generator | ||||
| | | * | Fix the Acl schema generator script. | Matthew Lewinski | 2011-02-27 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change 3e818846 in doctrine/dbal introduced a number of new classes in the Doctrine\DBAL\Platforms\Keywords namespace, so we need to be more careful here when generating Acl schema, so as to only load Platform classes and not any others in the same directory. | ||||
| * | | | Merge branch 'opensky-hotfix/remember-me-token-fix' into security | Johannes Schmitt | 2011-03-05 | 1 | -0/+17 |
| |\ \ \ | |||||
| | * | | | [Security] added the 'key' attribute of RememberMeToken to serialized string ↵ | Bulat Shakirzyanov | 2011-03-04 | 1 | -0/+17 |
| | |/ / | | | | | | | | | | | | | to be stored in session | ||||
| * | | | Merge branch 'cyqui-TICKET_9557' into security | Johannes Schmitt | 2011-03-05 | 1 | -1/+4 |
| |\ \ \ | |||||
| | * | | | TICKET #9557: session isn't required when using http basic authentification ↵ | Cyril Quintin | 2011-03-05 | 1 | -1/+4 |
| | |/ / | | | | | | | | | | | | | mecanism for example | ||||
| * | | | [Security] changed defaults for MessageDigestEncoder | Johannes Schmitt | 2011-03-05 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | - encode_as_base64 set to true - iterations increased to 5000 from 1 | ||||
| * | | | [Security] improved entropy to make collision attacks harder | Johannes Schmitt | 2011-03-05 | 1 | -1/+1 |
| |/ / | |||||
* | | | Replaced EventDispatcher by Doctrine's EventManager implementation | Bernhard Schussek | 2011-03-05 | 26 | -261/+355 |
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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(...)); | ||||
* | | [Security] Fixed Typo | Pascal Borreli | 2011-03-01 | 2 | -6/+9 |
|/ | |||||
* | Merge remote branch 'schmittjoh/security' | Fabien Potencier | 2011-02-27 | 3 | -2/+19 |
|\ | | | | | | | | | | | * schmittjoh/security: [Security] added method to retrieve the configured remember-me parameter [Security] Copy token attributes when auth providers create a new token from another | ||||
| * | Merge branch 'CopyTokenAttributesInProviders' of ↵ | Johannes Schmitt | 2011-02-26 | 2 | -2/+8 |
| |\ | | | | | | | | | | https://github.com/opensky/symfony into opensky-CopyTokenAttributesInProviders | ||||
| | * | [Security] Copy token attributes when auth providers create a new token from ↵ | Jeremy Mikola | 2011-02-23 | 2 | -2/+8 |
| | | | | | | | | | | | | | | | | | | another PreAuthenticatedAuthenticationProvider and UserAuthenticationProvider tend to copy a token instead of modifying it during their authenticate() methods, which is probably a good idea if the token might be immutable. Ensure that the token's attributes get copied along with everything else. | ||||
| * | | [Security] added method to retrieve the configured remember-me parameter | Johannes Schmitt | 2011-02-26 | 1 | -0/+11 |
| | | | |||||
* | | | fixed merge | Fabien Potencier | 2011-02-27 | 2 | -4/+2 |
|\ \ \ | |||||
| * | | | Fixed CS | Christophe Coevoet | 2011-02-27 | 2 | -4/+2 |
| |/ / | |||||
* | | | Merge remote branch 'lsmith77/code_analyzer_2011_02_27' | Fabien Potencier | 2011-02-27 | 1 | -1/+1 |
|\ \ \ | | | | | | | | | | | | | | | | | | | | | * lsmith77/code_analyzer_2011_02_27: corrected NonceExpiredException namespace issues found by static code analysis | ||||
| * | | | corrected NonceExpiredException namespace | Lukas Kahwe Smith | 2011-02-27 | 2 | -2/+2 |
| | | | | |||||
| * | | | issues found by static code analysis | Lukas Kahwe Smith | 2011-02-27 | 1 | -1/+1 |
| |/ / | |||||
* | | | [Security] Removed useless else | Pascal Borreli | 2011-02-27 | 4 | -16/+16 |
|/ / | |||||
* | | [Security] Fixed typo | Pascal Borreli | 2011-02-26 | 5 | -6/+6 |
|/ | |||||
* | added LICENSE files for the subtree repositories | Fabien Potencier | 2011-02-22 | 1 | -0/+19 |
| | |||||
* | replaced Response::createRedirect by a new RedirectResponse class | Fabien Potencier | 2011-02-21 | 5 | -6/+11 |
| | |||||
* | remove response as a service | Fabien Potencier | 2011-02-21 | 5 | -18/+6 |
| | | | | | | | | | | | | | | | | 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] adds a chain user provider | Johannes M. Schmitt | 2011-02-16 | 1 | -0/+70 |
| | |||||
* | [Security] moved Security classes out of DoctrineBundle, cleaned-up ↵ | Johannes Schmitt | 2011-02-16 | 3 | -1/+152 |
| | | | | | | | | | | | | | | SecurityExtension accordingly Note that this commit removes the built-in support for MongoDB user providers. This code can be moved back in once there is a stable release for MongoDB, but for now you have to set-up that user provider just like you would set-up any custom user provider: security: providers: document_provider: id: my.mongo.provider | ||||
* | [Security/Http] Adds CSRF protection to the form-login | Johannes Schmitt | 2011-02-16 | 2 | -5/+32 |
| | |||||
* | [Security] removed defaults from boolean columns | Johannes M. Schmitt | 2011-02-16 | 7 | -214/+214 |
| | |||||
* | Update code with latest Finder changes | Victor Berchet | 2011-02-16 | 1 | -2/+2 |
| | |||||
* | [Security] Add providerKey to PreAuthenticatedToken tokens constructed by ↵ | Jeremy Mikola | 2011-02-15 | 1 | -1/+1 |
| | | | | PreAuthenticatedAuthenticationProvider | ||||
* | [Security] Allow authentication tokens to hold attributes | Jeremy Mikola | 2011-02-15 | 2 | -2/+107 |
| | |||||
* | [Security] fixes a bug in DigestAuthenticationListener | Johannes M. Schmitt | 2011-02-14 | 1 | -4/+3 |
| | |||||
* | [Security] fixes a bug when clearing cookies on logout | Johannes M. Schmitt | 2011-02-14 | 1 | -15/+6 |
| | |||||
* | [Security] adds logout success handler | Johannes Schmitt | 2011-02-14 | 2 | -3/+44 |
| | |||||
* | [Security] fixes a bug where authentication errors might have leaked ↵ | Johannes Schmitt | 2011-02-14 | 3 | -10/+32 |
| | | | | confidential information | ||||
* | [Security] simplified encoder factory implementation | Johannes Schmitt | 2011-02-14 | 1 | -29/+21 |
| | |||||
* | [Security/Acl] added pre-generated schemas | Johannes M. Schmitt | 2011-02-14 | 7 | -0/+399 |
| | |||||
* | [Security] Fixed missed argument in call custom handler when authentication ↵ | Deni | 2011-02-13 | 1 | -1/+1 |
| | | | | is successful. | ||||
* | Changed namepace use of SecurityContext to SecurityContextInterface so that ↵ | dordille | 2011-02-13 | 1 | -2/+3 |
| | | | | constant SecurityContextInterface::LAST_USERNAME would resolve properly Also changed method signature of __construct to take and instance of SecurityContextInterface instead of SecurityContext | ||||
* | [Security] fixes some regressions | Johannes M. Schmitt | 2011-02-13 | 3 | -6/+6 |
| | |||||
* | [Security] Fixed indenting | Jordi Boggiano | 2011-02-12 | 1 | -22/+22 |
| | |||||
* | [Security] performance improvements of PermissionGrantingStrategy | Johannes Schmitt | 2011-02-12 | 2 | -22/+21 |
| | |||||
* | [Security] Refactored security context, moved getUser() implementation to ↵ | Johannes Schmitt | 2011-02-12 | 13 | -47/+51 |
| | | | | templating | ||||
* | [Security] removed __toString() from AccountInterface | Johannes Schmitt | 2011-02-12 | 2 | -13/+6 |
| | |||||
* | Fixed access denied handling | Christophe Coevoet | 2011-02-10 | 1 | -2/+0 |
| | |||||
* | fixed previous commit | Fabien Potencier | 2011-02-04 | 2 | -2/+2 |
| | |||||
* | some fixes by just "blindly" trying to make phpStorm code analysis happier | Lukas Kahwe Smith | 2011-02-04 | 13 | -18/+15 |
| | |||||
* | fixed method call, cosmetic variable rename | Lukas Kahwe Smith | 2011-02-04 | 3 | -7/+7 |
| | |||||
* | Revert "[Security] Missing Event namespace in SwitchUserListener" | Fabien Potencier | 2011-02-02 | 1 | -1/+0 |
| | | | | This reverts commit 0169892dcd7f3c5549f7dcbcf0bde9bbadcda525. | ||||
* | [Security] Missing Event namespace in SwitchUserListener | Jeremy Mikola | 2011-02-02 | 1 | -0/+1 |
| | |||||
* | [Security] bug fix in FormAuthenticationEntryPoint | Johannes M. Schmitt | 2011-02-02 | 10 | -28/+34 |
| | |||||
* | [Security] fixed a Token serialization bug | Sebastian Utz | 2011-02-02 | 4 | -23/+12 |
| | |||||
* | [Security] some bug fixes | Johannes M. Schmitt | 2011-02-02 | 3 | -1/+4 |
| | |||||
* | Fixed typo | Sergey Linnik | 2011-01-28 | 1 | -2/+2 |
| | |||||
* | [Security] fixed typo | Bulat Shakirzyanov | 2011-01-28 | 1 | -1/+1 |
| | |||||
* | added two events "security.interactive_login", and "security.switch_user" | Johannes M. Schmitt | 2011-01-27 | 4 | -1/+28 |
| | |||||
* | renamed PreAuthenticatedListener to AbstractPreAuthenticatedListener to be ↵ | Johannes M. Schmitt | 2011-01-27 | 2 | -3/+3 |
| | | | | consistent | ||||
* | added some doc comments | Johannes Schmitt | 2011-01-27 | 6 | -4/+78 |
| | |||||
* | namespace changes | Johannes M. Schmitt | 2011-01-26 | 103 | -150/+3408 |
| | | | | | | Symfony\Component\Security -> Symfony\Component\Security\Core Symfony\Component\Security\Acl remains unchanged Symfony\Component\HttpKernel\Security -> Symfony\Component\Security\Http | ||||
* | removed isAuthenticated() from SecurityContext | Johannes Schmitt | 2011-01-26 | 1 | -5/+0 |
| | |||||
* | [Security] many improvements, and fixes | Johannes Schmitt | 2011-01-26 | 19 | -29/+456 |
| | |||||
* | fixes else -> } else | Lukas Kahwe Smith | 2011-01-19 | 1 | -7/+3 |
| | |||||
* | normalized license messages in PHP files | Dominique Bongiraud | 2011-01-18 | 99 | -448/+520 |
| | |||||
* | removed duplicate code | Fabien Potencier | 2011-01-07 | 1 | -1/+10 |
| | |||||
* | added generic encoder factory | Johannes M. Schmitt | 2011-01-06 | 3 | -10/+113 |
|\ | |||||
| * | added generic encoder factory | Johannes Schmitt | 2010-12-21 | 3 | -10/+113 |
| | | |||||
* | | added extra exception if only a partial result is found | Johannes M. Schmitt | 2011-01-05 | 2 | -1/+47 |
| | | |||||
* | | optimized AclVoter, added unit test | Johannes M. Schmitt | 2011-01-03 | 2 | -23/+66 |
| | | |||||
* | | fix possible duplicate security identities | Johannes M. Schmitt | 2011-01-02 | 6 | -50/+74 |
| | | |||||
* | | added ACL system to the Security Component | Johannes Schmitt | 2010-12-31 | 42 | -0/+4997 |
|/ | |||||
* | renamed reloadUserByAccount() to loadUserByAccount() | Fabien Potencier | 2010-12-18 | 4 | -7/+9 |
| | |||||
* | remove user provider name | Johannes Schmitt | 2010-12-18 | 9 | -82/+60 |
| |