Submit
Path:
~
/
/
usr
/
local
/
psa
/
admin
/
plib
/
modules
/
grafana
/
vendor
/
league
/
oauth2-server
/
src
/
CodeChallengeVerifiers
/
File Content:
PlainVerifier.php
<?php /** * @author Lukáš Unger <lookymsc@gmail.com> * @copyright Copyright (c) Lukáš Unger * @license http://mit-license.org/ * * @link https://github.com/thephpleague/oauth2-server */ declare (strict_types=1); namespace PleskGrafana\League\OAuth2\Server\CodeChallengeVerifiers; use function hash_equals; class PlainVerifier implements CodeChallengeVerifierInterface { /** * Return code challenge method. */ public function getMethod() : string { return 'plain'; } /** * Verify the code challenge. */ public function verifyCodeChallenge(string $codeVerifier, string $codeChallenge) : bool { return hash_equals($codeVerifier, $codeChallenge); } }
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
CodeChallengeVerifierInterface.php
593 bytes
0644
PlainVerifier.php
745 bytes
0644
S256Verifier.php
899 bytes
0644
N4ST4R_ID | Naxtarrr