UNPKG

linagora-rse

Version:
11 lines (8 loc) 450 B
'use strict'; var BasicStrategy = require('@linagora/passport-http').BasicStrategy; module.exports = { name: 'basic-mongo', // config xhrChallengeType to rename the Basic challenge in 401 Unauthorized response, // so users will not see login dialog when they consume API protected by this basic-mongo strategy while not logged in strategy: new BasicStrategy({ xhrChallengeType: 'customBasic' }, require('../../../core/auth/mongo').auth) };