Skip to content

Commit

Permalink
#24 Missing class OAuthToken in v5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
klapaudius committed Mar 11, 2024
1 parent dd2e768 commit f89a163
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Security/Authenticator/Oauth2Authenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace FOS\OAuthServerBundle\Security\Authenticator;

use FOS\OAuthServerBundle\Model\AccessToken;
use FOS\OAuthServerBundle\Security\Authentication\Token\OAuthToken;
use FOS\OAuthServerBundle\Security\Authenticator\Token\OAuthToken;
use FOS\OAuthServerBundle\Security\Authenticator\Passport\Badge\AccessTokenBadge;
use OAuth2\OAuth2;
use OAuth2\OAuth2AuthenticateException;
Expand Down
41 changes: 41 additions & 0 deletions Security/Authenticator/Token/OAuthToken.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

declare(strict_types=1);

/*
* This file is part of the FOSOAuthServerBundle package.
*
* (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace FOS\OAuthServerBundle\Security\Authenticator\Token;

use Symfony\Component\Security\Core\Authentication\Token\AbstractToken;

/**
* OAuthToken class.
*
* @author Arnaud Le Blanc <[email protected]>
*/
class OAuthToken extends AbstractToken
{
protected string $token;

public function setToken(string $token)
{
$this->token = $token;
}

public function getToken(): string
{
return $this->token;
}

public function getCredentials(): string
{
return $this->token;
}
}

0 comments on commit f89a163

Please sign in to comment.