0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Merge pull request #3730 from jyek/auth-route

Update authentication endpoint for subdirectory
This commit is contained in:
Hannah Wolfe 2014-08-10 19:23:31 +01:00
commit 90fc933f08

View file

@ -1,3 +1,7 @@
import ghostPaths from 'ghost/utils/ghost-paths';
var Ghost = ghostPaths();
var AuthenticationInitializer = { var AuthenticationInitializer = {
name: 'authentication', name: 'authentication',
@ -17,7 +21,7 @@ var AuthenticationInitializer = {
}.property() }.property()
}); });
SimpleAuth.Authenticators.OAuth2.reopen({ SimpleAuth.Authenticators.OAuth2.reopen({
serverTokenEndpoint: '/ghost/api/v0.1/authentication/token', serverTokenEndpoint: Ghost.apiRoot + '/authentication/token',
refreshAccessTokens: true, refreshAccessTokens: true,
makeRequest: function (url, data) { makeRequest: function (url, data) {
data.client_id = 'ghost-admin'; data.client_id = 'ghost-admin';