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