0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00: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 = {
name: 'authentication',
@ -17,7 +21,7 @@ var AuthenticationInitializer = {
}.property()
});
SimpleAuth.Authenticators.OAuth2.reopen({
serverTokenEndpoint: '/ghost/api/v0.1/authentication/token',
serverTokenEndpoint: Ghost.apiRoot + '/authentication/token',
refreshAccessTokens: true,
makeRequest: function (url, data) {
data.client_id = 'ghost-admin';