0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-06 22:40:26 -05:00
verdaccio/packages/auth/test/helper/plugin.ts

44 lines
877 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 authChangePasswordConf = {
...getDefaultConfig(),
plugins: path.join(__dirname, '../partials/plugin'),
auth: {
'change-password': {},
},
};
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': {},
},
};