-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SSP-2030_OIDC_module_switch_to_ProcessingChain_for_authproc_support_c…
…onsent_mod (#228) * Switch to ProcessingChain for authproc filters * Add more tests. * Fix psalm errors * Add some manual testing tips for authproc testing; run an authproc as part of conformance tests * Update documentation --------- Co-authored-by: Marko Ivančić <[email protected]> Co-authored-by: Patrick <[email protected]>
- Loading branch information
1 parent
354b4ca
commit 2f15487
Showing
17 changed files
with
1,048 additions
and
339 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 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
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,45 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of the simplesamlphp-module-oidc. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace SimpleSAML\Module\oidc\Factories; | ||
|
||
use SimpleSAML\Auth\ProcessingChain; | ||
use SimpleSAML\Module\oidc\ModuleConfig; | ||
|
||
class ProcessingChainFactory | ||
{ | ||
public function __construct( | ||
private readonly ModuleConfig $moduleConfig, | ||
) { | ||
} | ||
|
||
/** | ||
* @codeCoverageIgnore | ||
* @throws \Exception | ||
*/ | ||
public function build(array $state): ProcessingChain | ||
{ | ||
$idpMetadata = [ | ||
'entityid' => $state['Source']['entityid'] ?? '', | ||
// ProcessChain needs to know the list of authproc filters we defined in module_oidc configuration | ||
'authproc' => $this->moduleConfig->getAuthProcFilters(), | ||
]; | ||
$spMetadata = [ | ||
'entityid' => $state['Destination']['entityid'] ?? '', | ||
]; | ||
|
||
return new ProcessingChain( | ||
$idpMetadata, | ||
$spMetadata, | ||
'oidc', | ||
); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.