mirror of
				https://github.com/elyby/oauth2-server.git
				synced 2025-05-31 14:12:07 +05:30 
			
		
		
		
	Update statement to generate codeChallenge in AuthCodeGrantTest
This commit is contained in:
		@@ -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()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user