src/Grant/AbstractGrant.php
protected function validateRedirectUri(
        string $redirectUri,
        ClientEntityInterface $client,
        ServerRequestInterface $request
    ) {
        if (\is_string($client->getRedirectUri())
            && (strcmp($client->getRedirectUri(), $redirectUri) !== 0)
        ) {
            $this->getEmitter()->emit(new RequestEvent(RequestEvent::CLIENT_AUTHENTICATION_FAILED, $request));
            throw OAuthServerException::invalidClient();
        } elseif (\is_array($client->getRedirectUri())
            && \in_array($redirectUri, $client->getRedirectUri(), true) === false
        ) {
            $this->getEmitter()->emit(new RequestEvent(RequestEvent::CLIENT_AUTHENTICATION_FAILED, $request));
            throw OAuthServerException::invalidClient();
        }
    }
protected function validateRedirectUri(
        string $redirectUri,
        ClientEntityInterface $client,
        ServerRequestInterface $request
    ) {
        if (\is_string($client->getRedirectUri())
            && (strcmp($client->getRedirectUri(), $redirectUri) !== 0)
        ) {
            $this->getEmitter()->emit(new RequestEvent(RequestEvent::CLIENT_AUTHENTICATION_FAILED, $request));
            throw OAuthServerException::invalidClient();
        } elseif (\is_array($client->getRedirectUri())
            && \in_array($redirectUri, $client->getRedirectUri(), true) === false
        ) {
            $this->getEmitter()->emit(new RequestEvent(RequestEvent::CLIENT_AUTHENTICATION_FAILED, $request));
            throw OAuthServerException::invalidClient();
        }
    }
protected function validateRedirectUri ( string $ redirectUri , ClientEntityInterface $ client , ServerRequestInterface $ request ) { if ( \ is_string ( $ client -> getRedirectUri ( ) ) && ( strcmp ( $ client -> getRedirectUri ( ) , $ redirectUri ) !== 0 ) ) { $ this -> getEmitter ( ) -> emit ( new RequestEvent ( RequestEvent :: CLIENT_AUTHENTICATION_FAILED , $ request ) ) ; throw OAuthServerException :: invalidClient ( ) ; } elseif ( \ is_array ( $ client -> getRedirectUri ( ) ) && \ in_array ( $ redirectUri , $ client -> getRedirectUri ( ) , true ) === false ) { $ this -> getEmitter ( ) -> emit ( new RequestEvent ( RequestEvent :: CLIENT_AUTHENTICATION_FAILED , $ request ) ) ; throw OAuthServerException :: invalidClient ( ) ; } }
Validate redirectUri from the request.
If a redirect URI is provided ensure it matches what is pre-registered

@param string                 $redirectUri
@param ClientEntityInterface  $client
@param ServerRequestInterface $request

@throws OAuthServerException
Validate redirectUri from the request . If a redirect URI is provided ensure it matches what is pre - registered