-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
51 changed files
with
611 additions
and
503 deletions.
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 was deleted.
Oops, something went wrong.
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,20 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace SimpleSAML\OpenID\Algorithms; | ||
|
||
use Jose\Component\Core\AlgorithmManager; | ||
|
||
class AlgorithmManagerDecorator | ||
{ | ||
public function __construct( | ||
protected readonly AlgorithmManager $algorithmManager, | ||
) { | ||
} | ||
|
||
public function algorithmManager(): AlgorithmManager | ||
{ | ||
return $this->algorithmManager; | ||
} | ||
} |
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
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,21 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace SimpleSAML\OpenID\Factories; | ||
|
||
use Jose\Component\Core\AlgorithmManager; | ||
use SimpleSAML\OpenID\Algorithms\AlgorithmManagerDecorator; | ||
use SimpleSAML\OpenID\SupportedAlgorithms; | ||
|
||
class AlgorithmManagerDecoratorFactory | ||
{ | ||
public function build(SupportedAlgorithms $supportedAlgorithms): AlgorithmManagerDecorator | ||
{ | ||
return new AlgorithmManagerDecorator( | ||
new AlgorithmManager( | ||
$supportedAlgorithms->getSignatureAlgorithmBag()->getAllInstances(), | ||
), | ||
); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace SimpleSAML\OpenID\Factories; | ||
|
||
use Jose\Component\Signature\Serializer\JWSSerializerManager; | ||
use SimpleSAML\OpenID\Serializers\JwsSerializerManagerDecorator; | ||
use SimpleSAML\OpenID\SupportedSerializers; | ||
|
||
class JwsSerializerManagerDecoratorFactory | ||
{ | ||
public function build(SupportedSerializers $supportedSerializers): JwsSerializerManagerDecorator | ||
{ | ||
return new JwsSerializerManagerDecorator( | ||
new JWSSerializerManager( | ||
$supportedSerializers->getJwsSerializerBag()->getAllInstances(), | ||
), | ||
); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.