Skip to content

Authenticating users with api keys using SimplePreAuthenticatorInterface #13330

Closed
@malisetti

Description

@malisetti

In the doc http://symfony.com/doc/current/cookbook/security/api_key_authentication.html ,
the below method's second parameter is user provider.

public function authenticateToken(TokenInterface $token, UserProviderInterface $userProvider, $providerKey)

When we make the ApiKeyAuthenticator service, the same class will have a class level user provider variable.

Could some please explain the difference between these two user provider variables ?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions