public function authenticate(IRequest $request)
    {
        foreach ($this->clientAuthenticationMethods as $clientAuthenticationMethod) {
            if ($clientAuthenticationMethod->match($request)) {
                return $clientAuthenticationMethod->authenticate($request);
            }
        }

        throw new InvalidClientException('Invalid client authentication method.');
    }
public function authenticate(IRequest $request)
    {
        foreach ($this->clientAuthenticationMethods as $clientAuthenticationMethod) {
            if ($clientAuthenticationMethod->match($request)) {
                return $clientAuthenticationMethod->authenticate($request);
            }
        }

        throw new InvalidClientException('Invalid client authentication method.');
    }
public function authenticate ( IRequest $ request ) { foreach ( $ this -> clientAuthenticationMethods as $ clientAuthenticationMethod ) { if ( $ clientAuthenticationMethod -> match ( $ request ) ) { return $ clientAuthenticationMethod -> authenticate ( $ request ) ; } } throw new InvalidClientException ( 'Invalid client authentication method.' ) ; }
Authenticates client using credentials from request

@param IRequest $request

@return IClient
@throws InvalidClientException
Authenticates client using credentials from request