|
|
@ -1,6 +1,7 @@
|
|
|
|
<?php
|
|
|
|
<?php
|
|
|
|
namespace App\Controller;
|
|
|
|
namespace App\Controller;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use App\Kernel;
|
|
|
|
use App\Security\AccessTokenHandler;
|
|
|
|
use App\Security\AccessTokenHandler;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
|
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
|
@ -9,7 +10,7 @@ use Symfony\Component\Routing\Annotation\Route;
|
|
|
|
class ClientLoaderController extends AbstractController
|
|
|
|
class ClientLoaderController extends AbstractController
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
public function __construct(private AccessTokenHandler $handler)
|
|
|
|
public function __construct(private Kernel $kernel, private AccessTokenHandler $handler)
|
|
|
|
{}
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
|
|
#[Route('/login/{slug}', name: 'app_client_loader')]
|
|
|
|
#[Route('/login/{slug}', name: 'app_client_loader')]
|
|
|
@ -22,6 +23,7 @@ class ClientLoaderController extends AbstractController
|
|
|
|
|
|
|
|
|
|
|
|
return $this->render('client_loader/index.html.twig',
|
|
|
|
return $this->render('client_loader/index.html.twig',
|
|
|
|
[
|
|
|
|
[
|
|
|
|
|
|
|
|
'env' => $this->kernel->getEnvironment(),
|
|
|
|
'controller_name' => $authName,
|
|
|
|
'controller_name' => $authName,
|
|
|
|
'token' => $this->handler->encodeMessage($authName, 'AUTH_SEED'),
|
|
|
|
'token' => $this->handler->encodeMessage($authName, 'AUTH_SEED'),
|
|
|
|
'size_wasm' => $size_wasm,
|
|
|
|
'size_wasm' => $size_wasm,
|
|
|
|