1100c2ce06
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
70 lines
1.8 KiB
PHP
70 lines
1.8 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace KTXM\AuthenticationProviderOidc;
|
|
|
|
use KTXC\Resource\ProviderManager;
|
|
use KTXF\Module\Configuration\BrowserModuleContextInterface;
|
|
use KTXF\Module\Configuration\ModuleContextInterface;
|
|
use KTXF\Module\ModuleInstanceAbstract;
|
|
|
|
/**
|
|
* OpenID Connect Identity Provider Module
|
|
* Provides SSO authentication via OIDC protocol
|
|
*/
|
|
class Module extends ModuleInstanceAbstract
|
|
{
|
|
public function __construct(
|
|
private readonly ProviderManager $providerManager,
|
|
) {}
|
|
|
|
public function handle(): string
|
|
{
|
|
return 'authentication_provider_oidc';
|
|
}
|
|
|
|
public function label(): string
|
|
{
|
|
return 'OpenID Connect Authentication Provider';
|
|
}
|
|
|
|
public function author(): string
|
|
{
|
|
return 'Ktrix';
|
|
}
|
|
|
|
public function description(): string
|
|
{
|
|
return 'OpenID Connect (OIDC) authentication provider - enables SSO authentication with Google, Azure AD, Okta, Keycloak, and other OIDC-compliant identity providers';
|
|
}
|
|
|
|
public function version(): string
|
|
{
|
|
return '0.0.1';
|
|
}
|
|
|
|
public function permissions(): array
|
|
{
|
|
return [
|
|
'authentication_provider_oidc' => [
|
|
'label' => 'Access OIDC Authentication Provider',
|
|
'description' => 'View and access the OIDC authentication provider module',
|
|
'group' => 'Authentication Providers'
|
|
],
|
|
];
|
|
}
|
|
|
|
public function boot(): void
|
|
{
|
|
$this->providerManager->register('authentication', 'oidc', Provider::class);
|
|
}
|
|
|
|
public function configure(ModuleContextInterface $context): void
|
|
{
|
|
if ($context instanceof BrowserModuleContextInterface) {
|
|
$context->registerModule($this, 'AuthenticationProviderOidc', 'static/module.mjs');
|
|
}
|
|
}
|
|
}
|