2018-10-05 13:45:17 +03:00
|
|
|
const session = require('./session');
|
2018-10-15 12:23:34 +03:00
|
|
|
const apiKeyAuth = require('./api-key');
|
2018-11-08 12:57:42 +03:00
|
|
|
const members = require('./members');
|
2015-10-22 16:28:47 +03:00
|
|
|
|
2018-10-05 13:45:17 +03:00
|
|
|
const authenticate = {
|
2019-01-30 22:17:25 +03:00
|
|
|
authenticateAdminApi: [apiKeyAuth.admin.authenticate, session.authenticate],
|
2019-09-23 19:12:53 +03:00
|
|
|
authenticateAdminApiWithUrl: [apiKeyAuth.admin.authenticateWithUrl],
|
2019-01-18 19:03:03 +03:00
|
|
|
|
2018-11-08 12:57:42 +03:00
|
|
|
authenticateContentApi: [apiKeyAuth.content.authenticateContentApiKey, members.authenticateMembersToken]
|
2015-10-22 16:28:47 +03:00
|
|
|
};
|
|
|
|
|
2016-09-30 14:45:59 +03:00
|
|
|
module.exports = authenticate;
|