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:
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 = {
|
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';
|
||||||
|
|
Loading…
Add table
Reference in a new issue