Skip to content

Update api_key_authentication.rst #3495

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cookbook/security/api_key_authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ The ``$userProvider`` might look something like this::
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Security\Core\Exception\UnsupportedUserException;

class ApiKeyUserProvider extends UserProviderInterface
class ApiKeyUserProvider implements UserProviderInterface
{
public function getUsernameForApiKey($apiKey)
{
Expand Down Expand Up @@ -414,7 +414,7 @@ of the user to make sure it's not out-of-date. But regardless of your requiremen
// src/Acme/HelloBundle/Security/ApiKeyUserProvider.php

// ...
class ApiKeyUserProvider extends UserProviderInterface
class ApiKeyUserProvider implements UserProviderInterface
{
// ...

Expand Down