-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 3.4: Fix json-encoding when JSON_THROW_ON_ERROR is used [HttpFoundation] work around PHP 7.3 bug related to json_encode() [Security] added support for updated \"distinguished name\" format in x509 authentication
- Loading branch information
Showing
2 changed files
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,9 +56,8 @@ public static function dataProviderGetPreAuthenticatedData() | |
/** | ||
* @dataProvider dataProviderGetPreAuthenticatedDataNoUser | ||
*/ | ||
public function testGetPreAuthenticatedDataNoUser($emailAddress) | ||
public function testGetPreAuthenticatedDataNoUser($emailAddress, $credentials) | ||
{ | ||
$credentials = 'CN=Sample certificate DN/emailAddress='.$emailAddress; | ||
$request = new Request([], [], [], [], [], ['SSL_CLIENT_S_DN' => $credentials]); | ||
|
||
$tokenStorage = $this->getMockBuilder('Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface')->getMock(); | ||
|
@@ -76,10 +75,12 @@ public function testGetPreAuthenticatedDataNoUser($emailAddress) | |
|
||
public static function dataProviderGetPreAuthenticatedDataNoUser() | ||
{ | ||
return [ | ||
'basicEmailAddress' => ['[email protected]'], | ||
'emailAddressWithPlusSign' => ['[email protected]'], | ||
]; | ||
yield ['[email protected]', 'CN=Sample certificate DN/[email protected]']; | ||
yield ['[email protected]', 'CN=Sample certificate DN/[email protected]']; | ||
yield ['[email protected]', 'CN=Sample certificate DN,[email protected]']; | ||
yield ['[email protected]', 'CN=Sample certificate DN,[email protected]']; | ||
yield ['[email protected]', '[email protected],CN=Sample certificate DN']; | ||
yield ['[email protected]', '[email protected]']; | ||
} | ||
|
||
/** | ||
|