title: Meteor LTI Auth, data from Iron Router server route to client?
body: <p>Am working on LTI Tool Provider, I have implemented an <a href="https://github.com/DavidSichau/meteor-lti-auth" rel="nofollow">LTI auth package</a> and am successfully able to get two (..one?) legged OAuth working aka match the signatures and we're all good to redirect, except one important thing.</p>
  
  <p>What I want to be able to do, is</p>
  
  <ul>
  <li>If this user doesnt exist, create it and log in</li>
  <li>If the user exists, log our user in</li>
  </ul>
  
  <p>Right now I have no way of actually determining my user once I redirect to a client route.</p>
  
  <p>The LTI Consumer points to my Iron Router server route that looks something like:</p>
  
  <pre><code>Router.route('/lti', { where: 'server' }).post(function() {
      provider.valid_request(request, function(error, valid) {
          if (valid) {
              this.response.writeHead(302, { Location: '/' });
          } else {
              this.response.writeHead(403);
          }
      });
      return this.response.end();
  });
  </code></pre>
  
  <p>Are there any packages I can use to get this working simply? Can I use something like accounts-base? Do I need to implement my own logic?</p>
  
  <p>Any help or direction is appreciated.</p>
  
  <p>Cheers.</p>