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
This commit is contained in:
Fabian Becker 2014-09-01 18:02:46 +00:00
parent 4eee1b4cde
commit 412e368729

View File

@ -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';