2020-03-03 17:59:19 -05:00
|
|
|
import path from 'path';
|
2021-10-29 10:33:05 -05:00
|
|
|
|
2022-08-19 13:25:20 -05:00
|
|
|
import { getDefaultConfig } from '@verdaccio/config';
|
2020-03-03 17:59:19 -05:00
|
|
|
|
2022-08-19 13:25:20 -05:00
|
|
|
export const authProfileConf = {
|
|
|
|
...getDefaultConfig(),
|
2022-09-16 01:02:08 -05:00
|
|
|
plugins: path.join(__dirname, '../partials/plugin'),
|
2020-03-03 17:59:19 -05:00
|
|
|
auth: {
|
2022-09-16 01:02:08 -05:00
|
|
|
success: {},
|
2020-08-13 16:27:00 -05:00
|
|
|
},
|
2022-08-19 13:25:20 -05:00
|
|
|
};
|
2020-03-03 17:59:19 -05:00
|
|
|
|
2022-08-19 13:25:20 -05:00
|
|
|
export const authPluginFailureConf = {
|
|
|
|
...getDefaultConfig(),
|
2022-09-16 01:02:08 -05:00
|
|
|
plugins: path.join(__dirname, '../partials/plugin'),
|
2020-03-03 17:59:19 -05:00
|
|
|
auth: {
|
2022-09-16 01:02:08 -05:00
|
|
|
fail: {},
|
2020-08-13 16:27:00 -05:00
|
|
|
},
|
2022-08-19 13:25:20 -05:00
|
|
|
};
|
2020-03-03 17:59:19 -05:00
|
|
|
|
2022-08-19 13:25:20 -05:00
|
|
|
export const authPluginPassThrougConf = {
|
|
|
|
...getDefaultConfig(),
|
2022-09-16 01:02:08 -05:00
|
|
|
plugins: path.join(__dirname, '../partials/plugin'),
|
2020-03-03 17:59:19 -05:00
|
|
|
auth: {
|
2022-09-16 01:02:08 -05:00
|
|
|
passthroug: {},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const authFailInvalidMethod = {
|
|
|
|
...getDefaultConfig(),
|
|
|
|
plugins: path.join(__dirname, '../partials/plugin'),
|
|
|
|
auth: {
|
|
|
|
'fail-invalid-method': {},
|
2020-08-13 16:27:00 -05:00
|
|
|
},
|
2022-08-19 13:25:20 -05:00
|
|
|
};
|