mirror of
				https://github.com/elyby/oauth2-server.git
				synced 2025-05-31 14:12:07 +05:30 
			
		
		
		
	Client could potentially return an array of redirect URIs
This commit is contained in:
		@@ -199,7 +199,9 @@ class AuthCodeGrant extends AbstractAuthorizeGrant
 | 
			
		||||
 | 
			
		||||
        $scopes = $this->validateScopes(
 | 
			
		||||
            $this->getQueryStringParameter('scope', $request),
 | 
			
		||||
            $client->getRedirectUri()
 | 
			
		||||
            is_array($client->getRedirectUri())
 | 
			
		||||
                ? $client->getRedirectUri()[0]
 | 
			
		||||
                : $client->getRedirectUri()
 | 
			
		||||
        );
 | 
			
		||||
 | 
			
		||||
        $stateParameter = $this->getQueryStringParameter('state', $request);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user