feat: harden the myep oauth2 client
This commit is contained in:
1 parent
2a8649fc6d
commit
3f4586ce06
8 files changed
+284
-11
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user