• Fabien Potencier's avatar
    merged branch denniscoorn/http-authentication-fix (PR #374) · 315c9626
    Fabien Potencier authored
    Commits
    -------
    
    51596d47 Fixed a bug when using http authentication on the security service provider
    
    Discussion
    ----------
    
    Fixed a bug when using http authentication on the security service provider
    
    Hi Fabien,
    
    When I added HTTP authentication to my Silex application an exception was thrown. Due the exception I wasn't able to use HTTP authentication when I accessed the application through the browser.
    
    I used the following security firewall:
    ```php
    'http-auth' => array(
        'pattern' => '^.*$',
        'http' => true,
        'users' => array(
            // password is foo
            'admin'  => array('ROLE_ADMIN', '5FZ2Z8QIkA7UTZ4BYkoC+GsReLf569mSKDsfods6LYQ8t+a8EW9oaircfMpmaLbPBh4FOBiiFyLfuZmTSUwzZg=='),
        ),
    )
    ```
    
    The following exception was thrown:
    ```
    InvalidArgumentException: Identifier "security.entry_point.http" is not defined
    ```
    
    It's a small fix and I also added some tests. All tests passed before I committed my changes.
    
    I would appreciate it when you take a look at this pull request.
    315c9626
Name
Last commit
Last update
..
Exception Loading commit data...
Provider Loading commit data...
Util Loading commit data...
Application.php Loading commit data...
Controller.php Loading commit data...
ControllerCollection.php Loading commit data...
ControllerProviderInterface.php Loading commit data...
ControllerResolver.php Loading commit data...
ExceptionHandler.php Loading commit data...
HttpCache.php Loading commit data...
LazyUrlMatcher.php Loading commit data...
RedirectableUrlMatcher.php Loading commit data...
Route.php Loading commit data...
ServiceProviderInterface.php Loading commit data...
SilexEvents.php Loading commit data...
WebTestCase.php Loading commit data...