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:
commit
90fc933f08
1 changed files with 5 additions and 1 deletions
|
@ -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';
|
||||
|
|
Loading…
Add table
Reference in a new issue