mirror of
				https://github.com/elyby/oauth2-server.git
				synced 2025-05-31 14:12:07 +05:30 
			
		
		
		
	missing clientSecret variable
This commit is contained in:
		@@ -173,7 +173,7 @@ class AuthCodeGrant extends AbstractGrant
 | 
			
		||||
 | 
			
		||||
        $clientSecret = $this->server->getRequest()->request->get('client_secret', null);
 | 
			
		||||
        if (is_null($clientSecret)) {
 | 
			
		||||
            $clientId = $this->server->getRequest()->getPassword();
 | 
			
		||||
            $clientSecret = $this->server->getRequest()->getPassword();
 | 
			
		||||
            if (is_null($clientSecret)) {
 | 
			
		||||
                throw new Exception\InvalidRequestException('client_secret');
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
@@ -64,7 +64,7 @@ class ClientCredentialsGrant extends AbstractGrant
 | 
			
		||||
 | 
			
		||||
        $clientSecret = $this->server->getRequest()->request->get('client_secret', null);
 | 
			
		||||
        if (is_null($clientSecret)) {
 | 
			
		||||
            $clientId = $this->server->getRequest()->getPassword();
 | 
			
		||||
            $clientSecret = $this->server->getRequest()->getPassword();
 | 
			
		||||
            if (is_null($clientSecret)) {
 | 
			
		||||
                throw new Exception\InvalidRequestException('client_secret');
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
@@ -88,7 +88,7 @@ class PasswordGrant extends AbstractGrant
 | 
			
		||||
 | 
			
		||||
        $clientSecret = $this->server->getRequest()->request->get('client_secret', null);
 | 
			
		||||
        if (is_null($clientSecret)) {
 | 
			
		||||
            $clientId = $this->server->getRequest()->getPassword();
 | 
			
		||||
            $clientSecret = $this->server->getRequest()->getPassword();
 | 
			
		||||
            if (is_null($clientSecret)) {
 | 
			
		||||
                throw new Exception\InvalidRequestException('client_secret');
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
@@ -68,7 +68,7 @@ class RefreshTokenGrant extends AbstractGrant
 | 
			
		||||
 | 
			
		||||
        $clientSecret = $this->server->getRequest()->request->get('client_secret', null);
 | 
			
		||||
        if (is_null($clientSecret)) {
 | 
			
		||||
            $clientId = $this->server->getRequest()->getPassword();
 | 
			
		||||
            $clientSecret = $this->server->getRequest()->getPassword();
 | 
			
		||||
            if (is_null($clientSecret)) {
 | 
			
		||||
                throw new Exception\InvalidRequestException('client_secret');
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user