givanse / ember-cli-simple-auth-devise

:key: Authenticate to a Rails/Devise server from Ember CLI.
The Unlicense
40 stars 9 forks source link

Simple auth addon seems to not be reading env config #7

Closed samselikoff closed 10 years ago

samselikoff commented 10 years ago

I am following the example here, and I have this in my config/environment.js file:

ENV['simple-auth'] = {
  authorizer: 'simple-auth-authorizer:devise',
  routeAfterAuthentication: 'landing-pages'
};

However, after my app authenticates it tries to go to the index route. I confirmed the configuration variable used had index as the routeAfterAuthentication property by adding a breakpoint in the sessionAuthenticationSucceeded method of the library.

I tried importing the configuration in the environment.js file ES6-style, but that doesn't seem to be allowed.

samselikoff commented 10 years ago

wrong repo