mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-22 13:09:44 +05:30
Update statement to generate codeChallenge in AuthCodeGrantTest
This commit is contained in:
parent
b6d9835281
commit
01d21b2533
@ -48,7 +48,7 @@ class AuthCodeGrantTest extends TestCase
|
||||
{
|
||||
$this->cryptStub = new CryptTraitStub;
|
||||
$this->codeVerifier = rtrim(strtr(base64_encode(random_bytes(32)), '+/', '-_'), '=');
|
||||
$this->codeChallenge = rtrim(strtr(base64_encode(hash('sha256',$this->codeVerifier, true)), '+/', '-_'), '=');
|
||||
$this->codeChallenge = hash('sha256', strtr(rtrim(base64_encode($this->codeVerifier), '='), '+/', '-_'));
|
||||
}
|
||||
|
||||
public function testGetIdentifier()
|
||||
|
Loading…
Reference in New Issue
Block a user