title: Get current user information in Apigility Resource
body: <p>I just started with Apigility and oAuth2, and I was wondering if it is possible to get the currently authenticated "loggedin" user when fetching information from a database.</p>
  
  <p>I currently have the following code:</p>
  
  <pre><code>/**
   * Fetch all or a subset of resources
   *
   * @param  array $params
   * @return mixed
   */
  public function fetchAll($params = array())
  {
      var_dump($params);
      // Using Zend\Db's SQL abstraction 
      $sql = new \Zend\Db\Sql\Sql($this-&gt;db); 
      //I would like to get the currently logged in user here... but how?
      $select = $sql-&gt;select('projects')-&gt;where(array('userid' =&gt; 1));; 
  
      // This provides paginated results for the given Select instance 
      $paged  = new \Zend\Paginator\Adapter\DbSelect($select, $this-&gt;db); 
  
      // which we then pass to our collection 
      return new ProjectsCollection($paged);  
  }
  </code></pre>
  
  <p>I did a lot of searching already but I have no clue how to access the user information or the access token, do I need to parse the request header for this?</p>