2 Commits

Author SHA1 Message Date
Sebastian f56e21ae49 Update dependency phpunit/phpunit to v12.5.35
Build Test / test (pull_request) Successful in 1m31s
JS Unit Tests / test (pull_request) Successful in 1m30s
PHP Unit Tests / test (pull_request) Successful in 2m1s
PHP Integration Tests / Integration Tests (pull_request) Failing after 2m21s
2026-09-10 03:04:36 +00:00
Sebastian 1100c2ce06 refactor(module): register integrations through runtime contexts
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
2026-08-31 22:55:57 -04:00
3 changed files with 218 additions and 449 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
"php": ">=8.3" "php": ">=8.3"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^13.0" "phpunit/phpunit": "^12.0"
}, },
"autoload-dev": { "autoload-dev": {
"psr-4": { "psr-4": {
Generated
+210 -436
View File
File diff suppressed because it is too large Load Diff
+7 -12
View File
@@ -5,14 +5,15 @@ declare(strict_types=1);
namespace KTXM\AuthenticationProviderOidc; namespace KTXM\AuthenticationProviderOidc;
use KTXC\Resource\ProviderManager; use KTXC\Resource\ProviderManager;
use KTXF\Module\ModuleBrowserInterface; use KTXF\Module\Configuration\BrowserModuleContextInterface;
use KTXF\Module\Configuration\ModuleContextInterface;
use KTXF\Module\ModuleInstanceAbstract; use KTXF\Module\ModuleInstanceAbstract;
/** /**
* OpenID Connect Identity Provider Module * OpenID Connect Identity Provider Module
* Provides SSO authentication via OIDC protocol * Provides SSO authentication via OIDC protocol
*/ */
class Module extends ModuleInstanceAbstract implements ModuleBrowserInterface class Module extends ModuleInstanceAbstract
{ {
public function __construct( public function __construct(
private readonly ProviderManager $providerManager, private readonly ProviderManager $providerManager,
@@ -59,16 +60,10 @@ class Module extends ModuleInstanceAbstract implements ModuleBrowserInterface
$this->providerManager->register('authentication', 'oidc', Provider::class); $this->providerManager->register('authentication', 'oidc', Provider::class);
} }
public function registerBI(): array public function configure(ModuleContextInterface $context): void
{ {
return [ if ($context instanceof BrowserModuleContextInterface) {
'handle' => $this->handle(), $context->registerModule($this, 'AuthenticationProviderOidc', 'static/module.mjs');
'namespace' => 'AuthenticationProviderOidc', }
'version' => $this->version(),
'label' => $this->label(),
'author' => $this->author(),
'description' => $this->description(),
'boot' => 'static/module.mjs',
];
} }
} }