-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
85c42ea
commit 38e8602
Showing
1 changed file
with
1 addition
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,7 +96,7 @@ public function permissionProvider() | |
/** | ||
* @dataProvider logAndInvalidate0Auth2SessionProvider | ||
*/ | ||
public function testLogoutAndInvalidateOAuth2Session(string $identifier, array $client, array $post_login_data, array $post_logout_data) | ||
public function testLogoutAndInvalidateOAuth2Session(string $identifier, array $post_login_data, array $post_logout_data) | ||
{ | ||
$this->deleteAllRows(['oauth2_refresh_token', 'oauth2_access_token']); | ||
|
||
|
@@ -157,20 +157,10 @@ public function logAndInvalidate0Auth2SessionProvider(): array | |
{ | ||
$clientInfo = [ | ||
'[email protected]' => [ | ||
'client' => [ | ||
'identifier' => hash('md5', random_bytes(16)), | ||
'secret' => hash('sha512', random_bytes(32)), | ||
'redirect_uri' => 'http://localhost:8080' . $this->generateUrl('homepage'), | ||
], | ||
'identifier' => hash('md5', random_bytes(16)), | ||
'expiry' => new \DateTimeImmutable('+1 days', new \DateTimeZone('Asia/Tokyo')), | ||
], | ||
'[email protected]' => [ | ||
'client' => [ | ||
'identifier' => hash('md5', random_bytes(16)), | ||
'secret' => hash('sha512', random_bytes(32)), | ||
'redirect_uri' => 'http://localhost:8080' . $this->generateUrl('homepage'), | ||
], | ||
'identifier' => hash('md5', random_bytes(16)), | ||
'secret' => hash('sha512', random_bytes(32)), | ||
'expiry' => new \DateTimeImmutable('-1 days', new \DateTimeZone('Asia/Tokyo')), | ||
|
@@ -180,7 +170,6 @@ public function logAndInvalidate0Auth2SessionProvider(): array | |
return [ | ||
[ | ||
'identifier' => '[email protected]', | ||
'client' => $clientInfo['[email protected]']['client'], | ||
'post_login_data' => [ | ||
'oauth2_access_token' => [ | ||
'user_identifier' => '[email protected]', | ||
|
@@ -213,7 +202,6 @@ public function logAndInvalidate0Auth2SessionProvider(): array | |
], | ||
], [ | ||
'identifier' => '[email protected]', | ||
'client' => $clientInfo['[email protected]']['client'], | ||
'post_login_data' => [ | ||
'oauth2_access_token' => [ | ||
'user_identifier' => '[email protected]', | ||
|