Compare commits
No commits in common. "597485586cd682aa4c52c616dd0ab9c89439a31d" and "84b72ccf18b2cc735f0b85b50172f89abc10ae2c" have entirely different histories.
597485586c
...
84b72ccf18
|
@ -48,10 +48,6 @@ services:
|
|||
arguments:
|
||||
$baseUrl: '%base_url%'
|
||||
|
||||
App\Hydra\HydraService:
|
||||
arguments:
|
||||
$baseUrl: '%base_url%'
|
||||
|
||||
App\SQLLogin\SQLLoginRequest:
|
||||
arguments:
|
||||
$config: []
|
||||
|
|
|
@ -15,14 +15,12 @@ class HydraService extends AbstractController
|
|||
public SessionInterface $session;
|
||||
public Client $client;
|
||||
public TokenStorageInterface $tokenStorage;
|
||||
public string $baseUrl;
|
||||
|
||||
public function __construct(Client $client, SessionInterface $session, TokenStorageInterface $tokenStorage, string $baseUrl)
|
||||
public function __construct(Client $client, SessionInterface $session, TokenStorageInterface $tokenStorage)
|
||||
{
|
||||
$this->session = $session;
|
||||
$this->client = $client;
|
||||
$this->tokenStorage = $tokenStorage;
|
||||
$this->baseUrl = $baseUrl;
|
||||
}
|
||||
|
||||
public function handleLoginRequest(Request $request)
|
||||
|
@ -42,7 +40,7 @@ class HydraService extends AbstractController
|
|||
// si le challenge est validé par hydra, on le stocke en session pour l'utiliser par la suite et on redirige vers une route interne protégée qui va déclencher l'identification FranceConnect
|
||||
$this->session->set('challenge', $loginRequestInfo['challenge']);
|
||||
|
||||
return new RedirectResponse($this->baseUrl.'/login');
|
||||
return $this->redirectToRoute('app_login');
|
||||
}
|
||||
|
||||
public function handleConsentRequest(Request $request)
|
||||
|
|
Loading…
Reference in New Issue