Use libsodium to encrypt all data, related to OAuth2

This commit is contained in:
ErickSkrauch
2019-12-06 14:37:51 +03:00
parent 642db2e045
commit 6fb32ec76d
10 changed files with 71 additions and 19 deletions

View File

@@ -18,7 +18,7 @@ class OauthSteps extends FunctionalTester {
]), ['accept' => true]);
$this->canSeeResponseJsonMatchesJsonPath('$.redirectUri');
[$redirectUri] = $this->grabDataFromResponseByJsonPath('$.redirectUri');
preg_match('/code=([\w-]+)/', $redirectUri, $matches);
preg_match('/code=([^&$]+)/', $redirectUri, $matches);
return $matches[1];
}