From 412e368729e95074a64f7bc4d481abd8c47467f0 Mon Sep 17 00:00:00 2001 From: Fabian Becker Date: Mon, 1 Sep 2014 18:02:46 +0000 Subject: [PATCH] Delete revoked tokens closes #3758 - new API method to delete access and refresh token - use new ember-simple-auth config to revoke tokens on logout - new method to delete tokens by .. token --- ghost/admin/initializers/authentication.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ghost/admin/initializers/authentication.js b/ghost/admin/initializers/authentication.js index 9435e5e13c..fef1ae4ace 100644 --- a/ghost/admin/initializers/authentication.js +++ b/ghost/admin/initializers/authentication.js @@ -22,6 +22,7 @@ var AuthenticationInitializer = { }); SimpleAuth.Authenticators.OAuth2.reopen({ serverTokenEndpoint: Ghost.apiRoot + '/authentication/token', + serverTokenRevocationEndpoint: Ghost.apiRoot + '/authentication/revoke', refreshAccessTokens: true, makeRequest: function (url, data) { data.client_id = 'ghost-admin';