Skip to content

Wrong example in authenticateToken for SimplePreAuthenticationListener #4148

Closed
@s7anley

Description

@s7anley

In 2nd code example in storing authentication in the session section, it's not possible to get current User with $user = $token->getUser();. SimplePreAuthenticationListener is skipped when current user is not authenticate with AnonymousToken, which in this case is true.

Or maybe I'm missing something?
Thanks.

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