1 Commits

Author SHA1 Message Date
Sebastian 05cdfefb4c Update dependency phpunit/phpunit to v13
Build Test / test (pull_request) Successful in 52s
JS Unit Tests / test (pull_request) Successful in 50s
PHP Unit Tests / test (pull_request) Successful in 1m21s
PHP Integration Tests / Integration Tests (pull_request) Failing after 2m24s
2026-07-26 03:02:24 +00:00
3 changed files with 452 additions and 221 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
"php": ">=8.3" "php": ">=8.3"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^12.0" "phpunit/phpunit": "^13.0"
}, },
"autoload-dev": { "autoload-dev": {
"psr-4": { "psr-4": {
Generated
+439 -213
View File
File diff suppressed because it is too large Load Diff
+12 -7
View File
@@ -5,15 +5,14 @@ declare(strict_types=1);
namespace KTXM\AuthenticationProviderOidc; namespace KTXM\AuthenticationProviderOidc;
use KTXC\Resource\ProviderManager; use KTXC\Resource\ProviderManager;
use KTXF\Module\Configuration\BrowserModuleContextInterface; use KTXF\Module\ModuleBrowserInterface;
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 class Module extends ModuleInstanceAbstract implements ModuleBrowserInterface
{ {
public function __construct( public function __construct(
private readonly ProviderManager $providerManager, private readonly ProviderManager $providerManager,
@@ -60,10 +59,16 @@ class Module extends ModuleInstanceAbstract
$this->providerManager->register('authentication', 'oidc', Provider::class); $this->providerManager->register('authentication', 'oidc', Provider::class);
} }
public function configure(ModuleContextInterface $context): void public function registerBI(): array
{ {
if ($context instanceof BrowserModuleContextInterface) { return [
$context->registerModule($this, 'AuthenticationProviderOidc', 'static/module.mjs'); 'handle' => $this->handle(),
} 'namespace' => 'AuthenticationProviderOidc',
'version' => $this->version(),
'label' => $this->label(),
'author' => $this->author(),
'description' => $this->description(),
'boot' => 'static/module.mjs',
];
} }
} }