import Configuration from 'simple-auth-oauth2/configuration';
import Authenticator from 'simple-auth-oauth2/authenticators/oauth2';
import Authorizer from 'simple-auth-oauth2/authorizers/oauth2';
import ENV from '../config/environment';

export default {
  name:       'simple-auth-oauth2',
  before:     'simple-auth',
  initialize: function(container, application) {
    Configuration.load(container, ENV);
    container.register('simple-auth-authorizer:oauth2-bearer', Authorizer);
    container.register('simple-auth-authenticator:oauth2-password-grant', Authenticator);
  }
};

@@ -399,16 +399,44 @@
 ner, ENV
+%5B'simple-auth-oauth2'%5D %7C%7C %7B%7D
 );%0A    c

read correct config scope