How to use ESA or ESAT to authenticate against custom provider

Thank you, Dan. I’ve updated the app by renaming dashboard route to callback. The questions I have now:

  • what URL should I access to trigger the authentication call ?
  • Should I setup callback route as root like that in app/router.js:
this.route('callback', { path: '/' });

When I start ember s and go to localhost:4200, nothing happens. If I navigate to localhost:4200/callback, I have the below errors in Chrome console:

router.js:938 Error while processing route: callback Cannot read property 'then' of undefined TypeError: Cannot read property 'then' of undefined
    at Class.authenticate (http://localhost:4200/assets/vendor.js:131953:87)
    at Class.authenticate (http://localhost:4200/assets/vendor.js:132839:35)
    at Class.activate [as _super] (http://localhost:4200/assets/vendor.js:132580:27)
    at Class.activate (http://localhost:4200/assets/ember-esa.js:473:12)
    at Class.superWrapper [as activate] (http://localhost:4200/assets/vendor.js:56334:22)
    at Class.enter (http://localhost:4200/assets/vendor.js:42746:12)
    at callHook (http://localhost:4200/assets/vendor.js:61351:38)
    at _handlerEnteredOrUpdated (http://localhost:4200/assets/vendor.js:62936:9)
    at handlerEnteredOrUpdated (http://localhost:4200/assets/vendor.js:62958:7)
    at setupContexts (http://localhost:4200/assets/vendor.js:62913:9)

What did I miss again ?