diff --git a/packages/classic-test-app/app/authenticators/oauth2.js b/packages/classic-test-app/app/authenticators/oauth2.js index f87a98600..824785b41 100644 --- a/packages/classic-test-app/app/authenticators/oauth2.js +++ b/packages/classic-test-app/app/authenticators/oauth2.js @@ -1,7 +1,7 @@ import OAuth2PasswordGrant from 'ember-simple-auth/authenticators/oauth2-password-grant'; import config from '../config/environment'; -export default OAuth2PasswordGrant.extend({ - serverTokenEndpoint: `${config.apiHost}/token`, - serverTokenRevocationEndpoint: `${config.apiHost}/revoke`, -}); +export default class OAuth2 extends OAuth2PasswordGrant { + serverTokenEndpoint = `${config.apiHost}/token`; + serverTokenRevocationEndpoint = `${config.apiHost}/revoke`; +} diff --git a/packages/classic-test-app/app/components/login-form.js b/packages/classic-test-app/app/components/login-form.js index cb8d5abe3..cc55f925f 100644 --- a/packages/classic-test-app/app/components/login-form.js +++ b/packages/classic-test-app/app/components/login-form.js @@ -13,9 +13,10 @@ export default Component.extend({ await this.get('session').authenticate('authenticator:oauth2', identification, password); if (this.rememberMe) { - this.get('session').set('store.cookieExpirationTime', 60 * 60 * 24 * 14); + this.get('session').set('cookieExpirationTime', 60 * 60 * 24 * 14); } } catch (response) { + console.error(response.toString()); this.set('errorMessage', response.toString()); } }),