mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 21:33:24 +03:00
9550205d33
closes #2759 closes #3027 - added oauth2orize library for server side oAuth handling - added ember-simple-auth library for admin oAuth handling - added tables for client, accesstoken and refreshtoken - implemented RFC6749 4.3 Ressouce Owner Password Credentials Grant - updated api tests with oAuth - removed session, authentication is now token based Known issues: - Restore spam prevention #3128 - Signin after Signup #3125 - Signin validation #3125 **Attention** - oldClient doesn't work with this PR anymore, session authentication was removed
18 lines
650 B
JavaScript
18 lines
650 B
JavaScript
import Notifications from 'ghost/utils/notifications';
|
|
|
|
var injectNotificationsInitializer = {
|
|
name: 'injectNotifications',
|
|
before: 'authentication',
|
|
|
|
initialize: function (container, application) {
|
|
application.register('notifications:main', Notifications);
|
|
|
|
application.inject('controller', 'notifications', 'notifications:main');
|
|
application.inject('component', 'notifications', 'notifications:main');
|
|
application.inject('router', 'notifications', 'notifications:main');
|
|
application.inject('route', 'notifications', 'notifications:main');
|
|
}
|
|
};
|
|
|
|
export default injectNotificationsInitializer;
|