public function authenticate(
        $appID,
        $sharedSecret = null,
        $ipAddress = null,
        $manual = false
    ) {

        // set app_id before trying to authenticate for logging and report purpose
        $this->setResponse('app_id', $appID);

        // attempt authentication
        $client = $this->clientRepo->authenticate($appID, $sharedSecret,
            $ipAddress, $manual);

        // client is authenticated
        if ($client) {
            $this->setAuthenticatedClient($client);
            return true;
        }

        // client is not authenticated
        $this->setResponse('responsecode', 'MT009');
        $this->setResponse('verbosemessage', $this->clientRepo->getMessage());
        $this->clientRepo->setMessage(null);
        return false;
    }
public function authenticate(
        $appID,
        $sharedSecret = null,
        $ipAddress = null,
        $manual = false
    ) {

        // set app_id before trying to authenticate for logging and report purpose
        $this->setResponse('app_id', $appID);

        // attempt authentication
        $client = $this->clientRepo->authenticate($appID, $sharedSecret,
            $ipAddress, $manual);

        // client is authenticated
        if ($client) {
            $this->setAuthenticatedClient($client);
            return true;
        }

        // client is not authenticated
        $this->setResponse('responsecode', 'MT009');
        $this->setResponse('verbosemessage', $this->clientRepo->getMessage());
        $this->clientRepo->setMessage(null);
        return false;
    }
public function authenticate ( $ appID , $ sharedSecret = null , $ ipAddress = null , $ manual = false ) { // set app_id before trying to authenticate for logging and report purpose $ this -> setResponse ( 'app_id' , $ appID ) ; // attempt authentication $ client = $ this -> clientRepo -> authenticate ( $ appID , $ sharedSecret , $ ipAddress , $ manual ) ; // client is authenticated if ( $ client ) { $ this -> setAuthenticatedClient ( $ client ) ; return true ; } // client is not authenticated $ this -> setResponse ( 'responsecode' , 'MT009' ) ; $ this -> setResponse ( 'verbosemessage' , $ this -> clientRepo -> getMessage ( ) ) ; $ this -> clientRepo -> setMessage ( null ) ; return false ; }
Authenticate a client

@param $appID
@param null $sharedSecret
@param null $ipAddress
@param bool $manual
@return bool
Authenticate a client