Skip to content

A Token was not found in the SecurityContext (in cookbook/security/custom_authentication_provider.rst) #1033

Closed
@c7nj7n

Description

@c7nj7n

I followed the tutorial step by step, and everything seems to be alright.

But once I access the protected area (see my security settings below) I get a "A Token was not found in the SecurityContext". Any idea what's wrong? Maybe I miss something, or it's maybe the cookbook entry that is not explicit enough at one point?

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

    login:
        pattern:        ^/login$
        security:       false

    wsse_secured:
        pattern:        ^/test.json$
        wsse:           true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions