update
This commit is contained in:
@@ -1,19 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Pshowsso\Scope68f5e85e9608b\League\OAuth2\Client\Test;
|
||||
namespace League\OAuth2\Client\Test;
|
||||
|
||||
use Lcobucci\JWT\Signer;
|
||||
use Lcobucci\JWT\Signer\Key;
|
||||
|
||||
use Pshowsso\Scope68f5e85e9608b\Lcobucci\JWT\Signer;
|
||||
use Pshowsso\Scope68f5e85e9608b\Lcobucci\JWT\Signer\Key;
|
||||
final class KeyDumpSigner implements Signer
|
||||
{
|
||||
public function algorithmId(): string
|
||||
{
|
||||
return 'keydump';
|
||||
}
|
||||
|
||||
public function sign(string $payload, Key $key): string
|
||||
{
|
||||
return $key->contents();
|
||||
}
|
||||
|
||||
public function verify(string $expected, string $payload, Key $key): bool
|
||||
{
|
||||
return $expected === $key->contents();
|
||||
|
||||
Reference in New Issue
Block a user