• 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
bin Loading commit data...
doc Loading commit data...
src/Silex Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
composer.json Loading commit data...
composer.lock Loading commit data...
phpunit.xml.dist Loading commit data...