oxtotp/src/metadata.php

129 lines
5.4 KiB
PHP
Raw Normal View History

2018-10-23 22:35:44 +02:00
<?php
/**
2022-09-26 15:22:26 +02:00
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
2018-10-23 22:35:44 +02:00
*
2022-09-26 15:22:26 +02:00
* https://www.d3data.de
2018-10-23 22:35:44 +02:00
*
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
2022-09-26 15:22:26 +02:00
* @author D3 Data Development - Daniel Seifert <info@shopmodule.com>
* @link https://www.oxidmodule.com
2018-10-23 22:35:44 +02:00
*/
2022-09-28 00:08:36 +02:00
declare(strict_types=1);
2022-11-10 00:00:50 +01:00
use D3\Totp\Application\Controller\Admin\d3totpadminlogin;
use D3\Totp\Application\Controller\Admin\d3user_totp;
use D3\Totp\Application\Controller\Admin\d3force_2fa;
use D3\Totp\Application\Controller\d3_account_totp;
use D3\Totp\Application\Controller\d3totplogin;
use D3\Totp\Modules\Application\Component\d3_totp_UserComponent;
use D3\Totp\Modules\Application\Controller\Admin\d3_totp_LoginController;
use D3\Totp\Modules\Application\Controller\d3_totp_OrderController;
use D3\Totp\Modules\Application\Controller\d3_totp_PaymentController;
use D3\Totp\Modules\Application\Controller\d3_totp_UserController;
use D3\Totp\Modules\Application\Model\d3_totp_user;
use D3\Totp\Modules\Core\d3_totp_utils;
use D3\Totp\Modules\Core\totpSystemEventHandler;
2018-10-23 22:35:44 +02:00
use D3\Totp\Setup as ModuleSetup;
use OxidEsales\Eshop\Application\Component\UserComponent;
2018-10-23 22:35:44 +02:00
use OxidEsales\Eshop\Application\Controller\Admin\LoginController;
use OxidEsales\Eshop\Application\Controller\OrderController;
use OxidEsales\Eshop\Application\Controller\PaymentController;
use OxidEsales\Eshop\Application\Controller\UserController;
use OxidEsales\Eshop\Core\SystemEventHandler;
2018-10-23 22:35:44 +02:00
use OxidEsales\Eshop\Core\Utils;
use OxidEsales\Eshop\Application\Model as OxidModel;
/**
* Metadata version
*/
2022-09-28 00:08:36 +02:00
$sMetadataVersion = '2.1';
2018-10-23 22:35:44 +02:00
$sModuleId = 'd3totp';
2022-09-26 15:58:38 +02:00
$logo = '<img src="https://logos.oxidmodule.com/d3logo.svg" alt="(D3)" style="height:1em;width:1em">';
2018-10-23 22:35:44 +02:00
/**
* Module information
*/
$aModule = [
'id' => $sModuleId,
'title' => [
2023-01-26 00:12:47 +01:00
'de' => $logo . ' zweiter Faktor - Einmalpasswort',
'en' => $logo . ' second factor - one-time password',
2018-10-23 22:35:44 +02:00
],
'description' => [
2023-01-26 00:12:47 +01:00
'de' => 'Einmalpasswort (TOTP) als zweiter Faktor bei der Anmeldung im OXID eSales Shop',
'en' => 'One-time password (TOTP) as second factor for login in OXID eSales shop',
2018-10-23 22:35:44 +02:00
],
2023-09-07 09:06:02 +02:00
'version' => '2.1.1.0',
2018-10-23 22:35:44 +02:00
'author' => 'D&sup3; Data Development (Inh.: Thomas Dartsch)',
'email' => 'support@shopmodule.com',
2022-09-28 00:08:36 +02:00
'url' => 'https://www.oxidmodule.com/',
2023-12-05 22:41:28 +01:00
'thumbnail' => 'picture.svg',
2018-10-23 22:35:44 +02:00
'extend' => [
UserController::class => d3_totp_UserController::class,
PaymentController::class => d3_totp_PaymentController::class,
OrderController::class => d3_totp_OrderController::class,
OxidModel\User::class => d3_totp_user::class,
LoginController::class => d3_totp_LoginController::class,
Utils::class => d3_totp_utils::class,
UserComponent::class => d3_totp_UserComponent::class,
2022-11-25 20:24:09 +01:00
SystemEventHandler::class => totpSystemEventHandler::class,
2018-10-23 22:35:44 +02:00
],
'controllers' => [
'd3user_totp' => d3user_totp::class,
'd3force_2fa' => d3force_2fa::class,
'd3totplogin' => d3totplogin::class,
'd3_account_totp' => d3_account_totp::class,
2022-11-25 20:24:09 +01:00
'd3totpadminlogin' => d3totpadminlogin::class,
2018-10-23 22:35:44 +02:00
],
'templates' => [
'd3user_totp.tpl' => 'd3/totp/Application/views/admin/tpl/d3user_totp.tpl',
'd3totplogin.tpl' => 'd3/totp/Application/views/tpl/d3totplogin.tpl',
'd3_account_totp.tpl' => 'd3/totp/Application/views/tpl/d3_account_totp.tpl',
2022-11-10 00:00:50 +01:00
'd3totpadminlogin.tpl' => 'd3/totp/Application/views/admin/tpl/d3totplogin.tpl',
2018-10-23 22:35:44 +02:00
],
'settings' => [
[
2022-09-28 00:08:36 +02:00
'group' => 'd3totp_main',
'name' => 'D3_TOTP_ADMIN_FORCE_2FA',
'type' => 'bool',
'value' => false,
2022-09-30 21:06:30 +02:00
],
],
2018-10-23 22:35:44 +02:00
'events' => [
2022-09-28 00:08:36 +02:00
'onActivate' => ModuleSetup\Events::class.'::onActivate',
'onDeactivate' => ModuleSetup\Events::class.'::onDeactivate',
2018-10-23 22:35:44 +02:00
],
'blocks' => [
[
'template' => 'login.tpl',
'block' => 'admin_login_form',
'file' => 'Application/views/admin/blocks/d3totp_login_admin_login_form.tpl',
],
[
'template' => 'page/account/inc/account_menu.tpl',
'block' => 'account_menu',
'file' => 'Application/views/blocks/page/account/inc/account_menu.tpl',
],
[
'template' => 'page/account/dashboard.tpl',
'block' => 'account_dashboard_col2',
'file' => 'Application/views/blocks/page/account/account_dashboard_col2_wave.tpl',
],
[
'theme' => 'flow',
'template' => 'page/account/dashboard.tpl',
'block' => 'account_dashboard_col2',
'file' => 'Application/views/blocks/page/account/account_dashboard_col2_flow.tpl',
],
[
'template' => 'widget/header/servicebox.tpl',
'block' => 'widget_header_servicebox_items',
'file' => 'Application/views/blocks/widget/header/widget_header_servicebox_items.tpl',
],
2022-09-30 21:06:30 +02:00
],
2018-10-23 22:35:44 +02:00
];