mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
f619c3133f
no issue - upgrading to `ember-simple-auth` 1.5.1 introduced a session restoration bug due to a change in the underlying initializer that we override
20 lines
744 B
JavaScript
20 lines
744 B
JavaScript
import Configuration from 'ember-simple-auth/configuration';
|
|
import ENV from '../config/environment';
|
|
import ghostPaths from '../utils/ghost-paths';
|
|
import setupSession from 'ember-simple-auth/initializers/setup-session';
|
|
import setupSessionRestoration from 'ember-simple-auth/initializers/setup-session-restoration';
|
|
import setupSessionService from 'ember-simple-auth/initializers/setup-session-service';
|
|
|
|
export default {
|
|
name: 'ember-simple-auth',
|
|
initialize(registry) {
|
|
let config = ENV['ember-simple-auth'] || {};
|
|
config.baseURL = ghostPaths().adminRoot;
|
|
Configuration.load(config);
|
|
|
|
setupSession(registry);
|
|
setupSessionService(registry);
|
|
setupSessionRestoration(registry);
|
|
}
|
|
};
|