Skip to content

Commit e4dfdd6

Browse files
committed
Make identifiers strings
1 parent 8264a40 commit e4dfdd6

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Repositories/ScopeRepositoryInterface.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function finalizeScopes(
3939
array $scopes,
4040
string $grantType,
4141
ClientEntityInterface $clientEntity,
42-
string|int|null $userIdentifier = null,
42+
string|null $userIdentifier = null,
4343
?string $authCodeId = null
4444
): array;
4545
}

tests/Grant/AuthCodeGrantTest.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,7 @@ public function testPKCEDowngradeBlocked(): void
10131013
'auth_code_id' => uniqid(),
10141014
'expire_time' => time() + 3600,
10151015
'client_id' => 'foo',
1016-
'user_id' => 123,
1016+
'user_id' => '123',
10171017
'scopes' => ['foo'],
10181018
'redirect_uri' => self::REDIRECT_URI,
10191019
],
@@ -1561,7 +1561,7 @@ public function testRespondToAccessTokenRequestBadCodeVerifierPlain(): void
15611561
'auth_code_id' => uniqid(),
15621562
'expire_time' => time() + 3600,
15631563
'client_id' => 'foo',
1564-
'user_id' => 123,
1564+
'user_id' => '123',
15651565
'scopes' => ['foo'],
15661566
'redirect_uri' => self::REDIRECT_URI,
15671567
'code_challenge' => 'foobar',
@@ -1636,7 +1636,7 @@ public function testRespondToAccessTokenRequestBadCodeVerifierS256(): void
16361636
'auth_code_id' => uniqid(),
16371637
'expire_time' => time() + 3600,
16381638
'client_id' => 'foo',
1639-
'user_id' => 123,
1639+
'user_id' => '123',
16401640
'scopes' => ['foo'],
16411641
'redirect_uri' => self::REDIRECT_URI,
16421642
'code_challenge' => 'foobar',
@@ -1711,7 +1711,7 @@ public function testRespondToAccessTokenRequestMalformedCodeVerifierS256WithInva
17111711
'auth_code_id' => uniqid(),
17121712
'expire_time' => time() + 3600,
17131713
'client_id' => 'foo',
1714-
'user_id' => 123,
1714+
'user_id' => '123',
17151715
'scopes' => ['foo'],
17161716
'redirect_uri' => self::REDIRECT_URI,
17171717
'code_challenge' => self::CODE_CHALLENGE,
@@ -1786,7 +1786,7 @@ public function testRespondToAccessTokenRequestMalformedCodeVerifierS256WithInva
17861786
'auth_code_id' => uniqid(),
17871787
'expire_time' => time() + 3600,
17881788
'client_id' => 'foo',
1789-
'user_id' => 123,
1789+
'user_id' => '123',
17901790
'scopes' => ['foo'],
17911791
'redirect_uri' => self::REDIRECT_URI,
17921792
'code_challenge' => 'R7T1y1HPNFvs1WDCrx4lfoBS6KD2c71pr8OHvULjvv8',
@@ -1860,7 +1860,7 @@ public function testRespondToAccessTokenRequestMissingCodeVerifier(): void
18601860
'auth_code_id' => uniqid(),
18611861
'expire_time' => time() + 3600,
18621862
'client_id' => 'foo',
1863-
'user_id' => 123,
1863+
'user_id' => '123',
18641864
'scopes' => ['foo'],
18651865
'redirect_uri' => self::REDIRECT_URI,
18661866
'code_challenge' => 'foobar',

0 commit comments

Comments
 (0)