mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 02:11:44 +03:00
17 lines
584 B
JavaScript
17 lines
584 B
JavaScript
|
import ENV from '../config/environment';
|
||
|
import ghostPaths from 'ghost/utils/ghost-paths';
|
||
|
|
||
|
var Ghost = ghostPaths();
|
||
|
|
||
|
export default {
|
||
|
name: 'simple-auth-env',
|
||
|
before: 'simple-auth-oauth2',
|
||
|
|
||
|
initialize: function () {
|
||
|
ENV['simple-auth-oauth2'].serverTokenEndpoint = Ghost.apiRoot + '/authentication/token';
|
||
|
ENV['simple-auth-oauth2'].serverTokenRevocationEndpoint = Ghost.apiRoot + '/authentication/revoke';
|
||
|
|
||
|
ENV['simple-auth'].localStorageKey = 'ghost' + (Ghost.subdir.indexOf('/') === 0 ? '-' + Ghost.subdir.substr(1) : '') + ':session';
|
||
|
}
|
||
|
};
|