You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
879 B

<?php
// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$
namespace Tiki\Lib\OpenIdConnect;
use Lcobucci\JWT\Signer\Rsa\Sha256;
class RSA256Signer extends Sha256
{
/**
* {@inheritdoc}
*/
public function verify($expected, $payload, $key)
{
if (is_array($key->contents())) {
return ! empty(
array_filter(
$key->contents(),
function ($content) use ($expected, $payload) {
return parent::verify($expected, $payload, $content);
}
)
);
}
return parent::verify($expected, $payload, $key);
}
}