Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 05cdfefb4c |
+1
-1
@@ -11,7 +11,7 @@
|
||||
"php": ">=8.3"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^12.0"
|
||||
"phpunit/phpunit": "^13.0"
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
|
||||
Generated
+439
-213
File diff suppressed because it is too large
Load Diff
+12
-7
@@ -5,15 +5,14 @@ declare(strict_types=1);
|
||||
namespace KTXM\AuthenticationProviderOidc;
|
||||
|
||||
use KTXC\Resource\ProviderManager;
|
||||
use KTXF\Module\Configuration\BrowserModuleContextInterface;
|
||||
use KTXF\Module\Configuration\ModuleContextInterface;
|
||||
use KTXF\Module\ModuleBrowserInterface;
|
||||
use KTXF\Module\ModuleInstanceAbstract;
|
||||
|
||||
/**
|
||||
* OpenID Connect Identity Provider Module
|
||||
* Provides SSO authentication via OIDC protocol
|
||||
*/
|
||||
class Module extends ModuleInstanceAbstract
|
||||
class Module extends ModuleInstanceAbstract implements ModuleBrowserInterface
|
||||
{
|
||||
public function __construct(
|
||||
private readonly ProviderManager $providerManager,
|
||||
@@ -60,10 +59,16 @@ class Module extends ModuleInstanceAbstract
|
||||
$this->providerManager->register('authentication', 'oidc', Provider::class);
|
||||
}
|
||||
|
||||
public function configure(ModuleContextInterface $context): void
|
||||
public function registerBI(): array
|
||||
{
|
||||
if ($context instanceof BrowserModuleContextInterface) {
|
||||
$context->registerModule($this, 'AuthenticationProviderOidc', 'static/module.mjs');
|
||||
}
|
||||
return [
|
||||
'handle' => $this->handle(),
|
||||
'namespace' => 'AuthenticationProviderOidc',
|
||||
'version' => $this->version(),
|
||||
'label' => $this->label(),
|
||||
'author' => $this->author(),
|
||||
'description' => $this->description(),
|
||||
'boot' => 'static/module.mjs',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user