mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +03:00
6473c9e858
issue #7452 Remote oauth2 authentication with Ghost.org. This PR supports: - oauth2 login or local login - authentication on blog setup - authentication on invite - normal authentication - does not contain many, many tests, but we'll improve in the next alpha weeks
18 lines
435 B
JavaScript
18 lines
435 B
JavaScript
var passport = require('./passport'),
|
|
authorize = require('./authorize'),
|
|
authenticate = require('./authenticate'),
|
|
oauth = require('./oauth');
|
|
|
|
exports.init = function (options) {
|
|
oauth.init();
|
|
|
|
return passport.init(options)
|
|
.then(function (response) {
|
|
return {auth: response.passport};
|
|
});
|
|
};
|
|
|
|
exports.oauth = oauth;
|
|
exports.authorize = authorize;
|
|
exports.authenticate = authenticate;
|