forked from FriendsOfSymfony/FOSOAuthServerBundle
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#24 Missing class OAuthToken in v5.0
- Loading branch information
klapaudius
committed
Mar 11, 2024
1 parent
dd2e768
commit f89a163
Showing
2 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |