mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 03:12:54 +03:00
62684dffff
issue #5751 - moves `makeRequest` override of simple-auth's OAuth authenticator into our own custom authenticator (previously our override was not taking effect until after ember-simple-auth's initial authentication routines, hence why it was working for post-login token refreshes but failing on app-boot)
13 lines
300 B
JavaScript
13 lines
300 B
JavaScript
import GhostOauth2Authenticator from 'ghost/authenticators/oauth2';
|
|
|
|
export default {
|
|
name: 'ghost-authentictor',
|
|
|
|
initialize: function (container) {
|
|
container.register(
|
|
'ghost-authenticator:oauth2-password-grant',
|
|
GhostOauth2Authenticator
|
|
);
|
|
}
|
|
};
|