src/rest/QueryBuilder.php
public function buildAuth(Query $query)
    {
        $auth = $this->db->getAuth();
        if (isset($auth['headerToken'])) {
            $this->authHeaders['Authorization'] = 'token ' . $auth['headerToken'];
        }
        if (isset($auth['headerBearer'])) {
            $this->authHeaders['Authorization'] = 'Bearer ' . $auth['headerBearer'];
        }
    }
public function buildAuth(Query $query)
    {
        $auth = $this->db->getAuth();
        if (isset($auth['headerToken'])) {
            $this->authHeaders['Authorization'] = 'token ' . $auth['headerToken'];
        }
        if (isset($auth['headerBearer'])) {
            $this->authHeaders['Authorization'] = 'Bearer ' . $auth['headerBearer'];
        }
    }
public function buildAuth ( Query $ query ) { $ auth = $ this -> db -> getAuth ( ) ; if ( isset ( $ auth [ 'headerToken' ] ) ) { $ this -> authHeaders [ 'Authorization' ] = 'token ' . $ auth [ 'headerToken' ] ; } if ( isset ( $ auth [ 'headerBearer' ] ) ) { $ this -> authHeaders [ 'Authorization' ] = 'Bearer ' . $ auth [ 'headerBearer' ] ; } }
This function is for you to provide your authentication.
@param Query $query
This function is for you to provide your authentication .