4

For some reason It's impossible to get access to my secured page. Every time I enter valid credentials the authentication pop-up comes up again. Any suggestions? Am I blind or stupid?

security:
    encoders:
        Symfony\Component\Security\Core\User\User: plaintext
    providers:
        in_memory:
            memory: 
                users:
                    tom: { password: lamp, roles: ROLE_USER }
                    gaelle: { password: lamp, roles: ROLE_USER }
                    tmas: { password: lamp, roles: ROLE_USER }

    firewalls:
        dev:
            pattern: ^/(_(profiler|wdt)|css|images|js)/
            security: false

        default:
            pattern: ^/
            anonymous: ~
            http_basic:
                realm: "Gaelle & Tom - Login"
                provider: in_memory

    access_control:
        - { path: ^/admin, roles: ROLE_USER }

I tried multiple things, including adding this line to my .htacccess:

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

My config is declared valid and feedback from logging gives me no information. These lines keep repeating itself after each login attempt:

[2015-01-15 13:03:04] security.DEBUG: Access is denied (user is not fully authenticated) by "/var/www/gaelleentom/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AccessListener.php" at line 70; redirecting to authentication entry point [] []

[2015-01-15 13:03:04] security.DEBUG: Calling Authentication entry point [] []

I'm using Symfony version 2.6

5
  • If you are still having this issue, can you give some information on the http_basic realm and the code for that? Commented Jan 7, 2016 at 1:23
  • What url you are trying to access on your website? Commented Feb 22, 2016 at 8:27
  • I'm sorry, I forgot to answer. I never figured it out so I switched to a nice form. Commented Feb 23, 2016 at 10:35
  • 6
    I know you solved this by switching to a form, but it looks like your original issue may be connected to: stackoverflow.com/questions/5989201/… Commented Apr 28, 2016 at 16:46
  • That does seem to be the case, thank you. Commented May 2, 2016 at 13:25

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.