@melriffe wrote:
Howdy!
I’m looking for a couple of things: 1) if there is a better place to ask this question, its location, and 2) guidance, recommendations on using ember-simple-auth to make application route require authentication.
For various reasons I’m trying to move an existing application into an Ember implementation. The app requires authentication, expect for the login and password reset pages, for any of its pages. From the ESA Readme, there’s a recommendation to nested routes that require authentication under a common parent route. It seems like I shouldn’t do that with the application route, but I"m not sure how to meet the current authentication requirements.
Related but a secondary question: Route names; I know there’s an application ‘index’ route. When I create additional nested routes and I want to define their ‘index’ route, should I use a different name in the declaration:
this.route("provider", function() { this.route("index", { path: "/" }); // should this be, instead, "provider-index"? });
Background: Ember 2.18.2
Thanks for any and all assistance.
Posts: 2
Participants: 2