feat: harden the myep oauth2 client

This commit is contained in:
fromme committed 2026-09-23 16:06:25 +02:00
1 parent 2a8649fc6d
commit 3f4586ce06
8 files changed
+284 -11

No files matched your search

+3 -4
View File
@@ -22,10 +22,9 @@ class OAuth2Controller extends AbstractController
{
$this->denyUnlessFeatureIsActive();
$provider = $this->client->getProvider();
$url = $provider->getAuthorizationUrl();
$state = $provider->getState();
$request->getSession()->set('oauth2state', $state);
// the state and the PKCE verifier belong to the client, which is what consumes
// them again on the callback
$url = $this->client->createAuthorizationUrl($request);
return $this->redirect($url);
}