I'm trying to configure simple-auth-oauth2 for Ember app. As documentation says http://ember-simple-auth.com/ember-simple-auth-oauth2-api-docs.html
Ember Simple Auth OAuth2's configuration object.
To change any of these values, set them on the application's environment object:
ENV['simple-auth-oauth2'] = { serverTokenEndpoint: '/some/custom/endpoint' }
Here is my config
//config/environment.js
module.exports = function (environment) {
var ENV = {
modulePrefix: 'ember-app',
environment: environment,
baseURL: '/',
API_HOST: '/',
locationType: 'auto',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. 'with-controller': true
}
},
APP: {
// Here you can pass flags/options to your application instance
// when it is created
}
};
ENV['simple-auth-oauth2'] = {
serverTokenEndpoint: '/some/custom/endpoint'
};
ENV['simple-auth'] = {
authorizer: 'simple-auth-authorizer:oauth2-bearer'
};
return ENV;
};
simple-auth-oauth2 keeps using default values. It's not particularly an issue of the plugin, I tried another extension ('simple-auth-token') and faced exactly the same issue - config is not used.