0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-23 22:27:34 -05:00
verdaccio/packages/auth/test/helper/plugin.ts

36 lines
711 B
TypeScript
Raw Normal View History

2020-03-03 17:59:19 -05:00
import path from 'path';
import { getDefaultConfig } from '@verdaccio/config';
2020-03-03 17:59:19 -05:00
export const authProfileConf = {
...getDefaultConfig(),
plugins: path.join(__dirname, '../partials/plugin'),
2020-03-03 17:59:19 -05:00
auth: {
success: {},
},
};
2020-03-03 17:59:19 -05:00
export const authPluginFailureConf = {
...getDefaultConfig(),
plugins: path.join(__dirname, '../partials/plugin'),
2020-03-03 17:59:19 -05:00
auth: {
fail: {},
},
};
2020-03-03 17:59:19 -05:00
export const authPluginPassThrougConf = {
...getDefaultConfig(),
plugins: path.join(__dirname, '../partials/plugin'),
2020-03-03 17:59:19 -05:00
auth: {
passthroug: {},
},
};
export const authFailInvalidMethod = {
...getDefaultConfig(),
plugins: path.join(__dirname, '../partials/plugin'),
auth: {
'fail-invalid-method': {},
},
};