title: Ember Auth Custom Authenticator
body: <p>When writing a custom authenticator using Ember.SimpleAuth with Ember-CLI, what exactly does the authenticate method of the custom authenticator need to return in order to establish a user as logged in?  Below is the authenticator as it currently exists.  We are using a phalcon rest api for the back end, so ultimately it seems that this method will need to hit that URL and authenticate the user on the server side, but what should the server return in order for ember.simpleauth to do what it needs to do?</p>
  
  <pre><code>import Ember from "ember";
  import App from '../app';
  import Base from "simple-auth/authenticators/base";
  
  export default Base.extend({
      tokenEndpoint: 'login',
  
      restore: function(data) {
          console.log('ran resotre');
      },
      authenticate: function(credentials) {
          alert(credentials.identification);
          alert(credentials.password);
      },
      invalidate: function() {
          console.log('ran invalidate');
      }
  });
  </code></pre>