update
This commit is contained in:
21
modules/pshowsso/config/admin/index.php
Normal file
21
modules/pshowsso/config/admin/index.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* File from http://PrestaShow.pl
|
||||
*
|
||||
* DISCLAIMER
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future.
|
||||
*
|
||||
* @author PrestaShow.pl <kontakt@prestashow.pl>
|
||||
* @copyright Since 2014 PrestaShow.pl
|
||||
* @license https://prestashow.pl/license
|
||||
*/
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
14
modules/pshowsso/config/admin/services.yml
Normal file
14
modules/pshowsso/config/admin/services.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
services:
|
||||
_defaults:
|
||||
public: false
|
||||
autowire: true
|
||||
autoconfigure: true
|
||||
|
||||
Prestashow\PShowSSO\Link\Controller\Admin\ConfigurationController:
|
||||
class: Prestashow\PShowSSO\Link\Controller\Admin\ConfigurationController
|
||||
public: true
|
||||
autowire: true
|
||||
autoconfigure: true
|
||||
tags:
|
||||
- { name: controller.service_arguments }
|
||||
- { name: kernel.controller_subscriber }
|
||||
21
modules/pshowsso/config/front/index.php
Normal file
21
modules/pshowsso/config/front/index.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* File from http://PrestaShow.pl
|
||||
*
|
||||
* DISCLAIMER
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future.
|
||||
*
|
||||
* @author PrestaShow.pl <kontakt@prestashow.pl>
|
||||
* @copyright Since 2014 PrestaShow.pl
|
||||
* @license https://prestashow.pl/license
|
||||
*/
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
61
modules/pshowsso/config/front/services.yml
Normal file
61
modules/pshowsso/config/front/services.yml
Normal file
@@ -0,0 +1,61 @@
|
||||
services:
|
||||
_defaults:
|
||||
public: false
|
||||
autowire: true
|
||||
autoconfigure: true
|
||||
|
||||
prestashow.customer.service:
|
||||
class: Prestashow\PShowSSO\Service\CustomerService
|
||||
arguments:
|
||||
- '@hashing'
|
||||
- '@context'
|
||||
public: true
|
||||
|
||||
prestashow.service.sso.github:
|
||||
class: Prestashow\PShowSSO\SSO\Github\GithubService
|
||||
arguments:
|
||||
- '@context'
|
||||
- '@prestashow.customer.service'
|
||||
public: true
|
||||
|
||||
prestashow.service.sso.google:
|
||||
class: Prestashow\PShowSSO\SSO\Google\GoogleService
|
||||
arguments:
|
||||
- '@context'
|
||||
- '@prestashow.customer.service'
|
||||
public: true
|
||||
|
||||
prestashow.service.sso.apple:
|
||||
class: Prestashow\PShowSSO\SSO\Apple\AppleService
|
||||
arguments:
|
||||
- '@context'
|
||||
- '@prestashow.customer.service'
|
||||
public: true
|
||||
|
||||
prestashow.service.sso.facebook:
|
||||
class: Prestashow\PShowSSO\SSO\Facebook\FacebookService
|
||||
arguments:
|
||||
- '@context'
|
||||
- '@prestashow.customer.service'
|
||||
public: true
|
||||
|
||||
prestashow.service.sso.x:
|
||||
class: Prestashow\PShowSSO\SSO\X\XService
|
||||
arguments:
|
||||
- '@context'
|
||||
- '@prestashow.customer.service'
|
||||
public: true
|
||||
|
||||
prestashow.service.sso.microsoft:
|
||||
class: Prestashow\PShowSSO\SSO\Microsoft\MicrosoftService
|
||||
arguments:
|
||||
- '@context'
|
||||
- '@prestashow.customer.service'
|
||||
public: true
|
||||
|
||||
prestashow.service.sso.keycloak:
|
||||
class: Prestashow\PShowSSO\SSO\Keycloak\KeycloakService
|
||||
arguments:
|
||||
- '@context'
|
||||
- '@prestashow.customer.service'
|
||||
public: true
|
||||
21
modules/pshowsso/config/index.php
Normal file
21
modules/pshowsso/config/index.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* File from http://PrestaShow.pl
|
||||
*
|
||||
* DISCLAIMER
|
||||
* Do not edit or add to this file if you wish to upgrade this module to newer
|
||||
* versions in the future.
|
||||
*
|
||||
* @author PrestaShow.pl <kontakt@prestashow.pl>
|
||||
* @copyright Since 2014 PrestaShow.pl
|
||||
* @license https://prestashow.pl/license
|
||||
*/
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
12
modules/pshowsso/config/routes.yml
Normal file
12
modules/pshowsso/config/routes.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
# modules/pshowsso/config/routes.yml
|
||||
|
||||
pshowsso_admin_config: # <- nazwa z podkreśleniami
|
||||
path: /pshowsso/{service}/config # <- koniecznie z wiodącym "/"
|
||||
methods: [GET, POST]
|
||||
defaults:
|
||||
_controller: 'Prestashow\PShowSSO\Link\Controller\Admin\ConfigurationController::configurationAction'
|
||||
_legacy_controller: 'AdminPshowssoConfig' # pomaga uprawnieniom/BO
|
||||
_legacy_link: 'AdminPshowssoConfig'
|
||||
service: 'apple'
|
||||
requirements:
|
||||
service: '[a-z]+'
|
||||
Reference in New Issue
Block a user