mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 05:14:12 +03:00
6c317054c1
refs TryGhost/Ghost#7628 (issue), refs TryGhost/Ghost#7631 (required) - update `config` service to fetch from public configuration endpoint - add `beforeModel` to `application` route to fetch config and pause further processing until the request is complete - remove `<meta name="env-*">` tags from generated `default.hbs` and internal testing `index.html` - add mirage config to simulate configuration endpoint and helper to simulate enabled oauth config - update `ghost-oauth2` torii provider to use auth server URL from server-provided config
13 lines
346 B
JavaScript
13 lines
346 B
JavaScript
import {isEmpty} from 'ember-utils';
|
|
|
|
export function enableGhostOAuth(server) {
|
|
if (isEmpty(server.db.configurations)) {
|
|
server.loadFixtures('configurations');
|
|
}
|
|
|
|
server.db.configurations.update(1, {
|
|
ghostAuthId: '6e0704b3-c653-4c12-8da7-584232b5c629',
|
|
ghostAuthUrl: 'http://devauth.ghost.org:8080'
|
|
});
|
|
}
|